Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.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.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",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.001725/0.001724, allocations: 190.2 kB / 7.845 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.001915/0.001915, allocations: 92.05 kB / 261.5 MB, free: 13.63 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.1205/0.1205, allocations: 12.58 MB / 322 MB, free: 1 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2711/0.3916, allocations: 56.5 MB / 378.5 MB, free: 75.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.4865, allocations: 50.38 MB / 428.9 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6199/1.106, allocations: 77.38 MB / 0.4944 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004097/1.107, allocations: 62.78 kB / 0.4944 GB, free: 11.66 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.01046/1.117, allocations: 1.167 MB / 0.4956 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.045e-05/1.118, allocations: 7.688 kB / 0.4956 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.862e-05/1.118, allocations: 8.938 kB / 0.4956 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/1.118, allocations: 181.7 kB / 0.4958 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/1.118, allocations: 0 / 0.4958 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/1.118, allocations: 7.906 kB / 0.4958 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000215/1.118, allocations: 16.61 kB / 0.4958 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005074/1.119, allocations: 112.9 kB / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/1.119, allocations: 0 / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/1.119, allocations: 0 / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/1.119, allocations: 7.844 kB / 0.4959 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008593/1.12, allocations: 331.6 kB / 0.4962 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003965/1.12, allocations: 153.1 kB / 0.4964 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/1.12, allocations: 32.47 kB / 0.4964 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.82e-05/1.12, allocations: 3.938 kB / 0.4964 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/1.12, allocations: 38.67 kB / 0.4964 GB, free: 10.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 3.336e-06/1.121, allocations: 4 kB / 0.4964 GB, free: 10.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006083/1.121, allocations: 63.19 kB / 0.4965 GB, free: 10.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.233e-05/1.121, allocations: 104.2 kB / 0.4966 GB, free: 10.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/1.121, allocations: 104.6 kB / 0.4967 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/1.121, allocations: 25.7 kB / 0.4967 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.527e-05/1.122, allocations: 81.27 kB / 0.4968 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.622e-05/1.122, allocations: 12.59 kB / 0.4968 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-06/1.122, allocations: 4 kB / 0.4968 GB, free: 10.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.843e-05/1.122, allocations: 321.2 kB / 0.4971 GB, free: 9.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.95e-05/1.122, allocations: 7.625 kB / 0.4971 GB, free: 9.711 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/1.122, allocations: 36.91 kB / 0.4972 GB, free: 9.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/1.122, allocations: 12.61 kB / 0.4972 GB, free: 9.672 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/1.122, allocations: 4 kB / 0.4972 GB, free: 9.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004167/1.123, allocations: 67.39 kB / 0.4972 GB, free: 9.633 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/1.123, allocations: 7.781 kB / 0.4973 GB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/1.123, allocations: 3.906 kB / 0.4973 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/1.123, allocations: 3.938 kB / 0.4973 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002922/1.123, allocations: 16.56 kB / 0.4973 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.123, allocations: 0 / 0.4973 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/1.123, allocations: 13.25 kB / 0.4973 GB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/1.123, allocations: 3.75 kB / 0.4973 GB, free: 9.613 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (ClockedRealToSquare.y2,$CLKPRE.ClockedRealToSquare.y2,ClockedRealToSquare.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 0.0001044/1.123, allocations: 104.9 kB / 0.4974 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/1.123, allocations: 52.14 kB / 0.4974 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.985e-05/1.124, allocations: 7.312 kB / 0.4975 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.962e-06/1.124, allocations: 4.891 kB / 0.4975 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/1.124, allocations: 0 / 0.4975 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/1.124, allocations: 384 / 0.4975 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007099/1.124, allocations: 147.8 kB / 0.4976 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.124, allocations: 4 kB / 0.4976 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002273/1.125, allocations: 14.48 kB / 0.4976 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/1.125, allocations: 3.938 kB / 0.4976 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/1.125, allocations: 1.453 kB / 0.4976 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/1.125, allocations: 3.938 kB / 0.4976 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.125, allocations: 0 / 0.4976 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004034/1.125, allocations: 269.5 kB / 0.4979 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005188/1.126, allocations: 0.6304 MB / 0.4985 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.922e-05/1.126, allocations: 84.98 kB / 0.4986 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/1.126, allocations: 1.219 kB / 0.4986 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/1.126, allocations: 6.031 kB / 0.4986 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/1.126, allocations: 3.812 kB / 0.4986 GB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/1.126, allocations: 1.219 kB / 0.4986 GB, free: 8.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.9e-05/1.126, allocations: 87.25 kB / 0.4987 GB, free: 8.242 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004646/1.131, allocations: 11.59 kB / 0.4987 GB, free: 8.238 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (ClockedRealToSquare.y,ClockedRealToSquare.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 0.0002595/1.131, allocations: 100.3 kB / 0.4988 GB, free: 8.145 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000243/1.131, allocations: 33.64 kB / 0.4988 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.132, allocations: 0 / 0.4988 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.063e-05/1.132, allocations: 7.719 kB / 0.4988 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005196/1.132, allocations: 23.3 kB / 0.4988 GB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007278/1.133, allocations: 102.5 kB / 0.4989 GB, free: 8.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004561/1.133, allocations: 0.7033 MB / 0.4996 GB, free: 7.328 MB / 330.7 MB Notification: Performance of SimCode: time 4.037e-06/1.133, allocations: 0 / 0.4996 GB, free: 7.328 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe 2>&1)