Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestBackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002646/0.002645, allocations: 192.4 kB / 7.847 MB, free: 2.469 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001268/0.001267, allocations: 90.84 kB / 261.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1119/0.1119, allocations: 12.59 MB / 322 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2758/0.3878, allocations: 56.49 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.4865, allocations: 50.38 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3483/0.8349, allocations: 77.44 MB / 0.4944 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.8352, allocations: 60.97 kB / 0.4945 GB, free: 11.89 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0059/0.8411, allocations: 1.493 MB / 0.4959 GB, free: 11.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.8411, allocations: 7.688 kB / 0.496 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.836e-05/0.8412, allocations: 12.34 kB / 0.496 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.8415, allocations: 201.6 kB / 0.4962 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.8415, allocations: 5.688 kB / 0.4962 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.8415, allocations: 7.906 kB / 0.4962 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001464/0.8417, allocations: 30.59 kB / 0.4962 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003415/0.842, allocations: 154 kB / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.842, allocations: 0 / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.8421, allocations: 4 kB / 0.4963 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.8421, allocations: 7.906 kB / 0.4964 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004132/0.8425, allocations: 271.6 kB / 0.4966 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002639/0.8428, allocations: 191.9 kB / 0.4968 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.8429, allocations: 55.09 kB / 0.4969 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.8429, allocations: 12.02 kB / 0.4969 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.843, allocations: 42.75 kB / 0.4969 GB, free: 10.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 1.693e-06/0.843, allocations: 0 / 0.4969 GB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002847/0.8433, allocations: 90.55 kB / 0.497 GB, free: 10.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.8434, allocations: 137.8 kB / 0.4971 GB, free: 10.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.8435, allocations: 111.9 kB / 0.4972 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.8435, allocations: 29.58 kB / 0.4973 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.97e-05/0.8435, allocations: 86.11 kB / 0.4973 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.8436, allocations: 8.547 kB / 0.4973 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.8436, allocations: 0 / 0.4973 GB, free: 10.2 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.8437, allocations: 321.9 kB / 0.4977 GB, free: 9.879 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.554e-05/0.8437, allocations: 15.19 kB / 0.4977 GB, free: 9.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.651e-05/0.8438, allocations: 78.02 kB / 0.4977 GB, free: 9.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.594e-05/0.8438, allocations: 18.41 kB / 0.4978 GB, free: 9.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.8439, allocations: 0 / 0.4978 GB, free: 9.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00019/0.8441, allocations: 93.86 kB / 0.4978 GB, free: 9.734 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.8441, allocations: 7.906 kB / 0.4979 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.8441, allocations: 3.812 kB / 0.4979 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.8441, allocations: 4.484 kB / 0.4979 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.8443, allocations: 30.48 kB / 0.4979 GB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.8443, allocations: 8.578 kB / 0.4979 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.8444, allocations: 12.31 kB / 0.4979 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.8445, allocations: 8.266 kB / 0.4979 GB, free: 9.715 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.214e-05/0.8445, allocations: 108.9 kB / 0.498 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.8447, allocations: 83.52 kB / 0.4981 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.72e-05/0.8448, allocations: 16.53 kB / 0.4981 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.8448, allocations: 0 / 0.4981 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.8448, allocations: 3.875 kB / 0.4981 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.8449, allocations: 0.6562 kB / 0.4981 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.845, allocations: 160.9 kB / 0.4983 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.8451, allocations: 0.75 kB / 0.4983 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/0.8452, allocations: 18.94 kB / 0.4983 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.8453, allocations: 7.844 kB / 0.4983 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.8453, allocations: 4.969 kB / 0.4983 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.8453, allocations: 3.844 kB / 0.4983 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8453, allocations: 0 / 0.4983 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002364/0.8455, allocations: 242.9 kB / 0.4985 GB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000268/0.8458, allocations: 0.6153 MB / 0.4991 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.8459, allocations: 97.02 kB / 0.4992 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.8459, allocations: 0 / 0.4992 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.8461, allocations: 5.25 kB / 0.4992 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.8461, allocations: 5.344 kB / 0.4992 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.8461, allocations: 0 / 0.4992 GB, free: 8.469 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.93e-05/0.8462, allocations: 107.9 kB / 0.4994 GB, free: 8.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001147/0.8474, allocations: 7.719 kB / 0.4994 GB, free: 8.391 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.731e-05/0.8475, allocations: 96.42 kB / 0.4995 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001711/0.8477, allocations: 58.17 kB / 0.4995 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.8477, allocations: 0 / 0.4995 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.138e-05/0.8477, allocations: 0 / 0.4995 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.8481, allocations: 58.48 kB / 0.4996 GB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003972/0.8486, allocations: 127.5 kB / 0.4997 GB, free: 8.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/0.8488, allocations: 0.7201 MB / 0.5004 GB, free: 7.473 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.8489, allocations: 0 / 0.5004 GB, free: 7.473 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestBackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBackSample.pipe 2>&1)