Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") [: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.001166/0.001167, allocations: 192.4 kB / 7.846 MB, free: 2.496 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.266/1.266, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001003/0.001003, allocations: 91.56 kB / 261.5 MB, free: 13.55 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.08603/0.08603, allocations: 12.59 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.813e-06/6.843e-06, allocations: 0 / 378.4 MB, free: 75.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.09927, allocations: 50.38 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2526/0.3519, allocations: 78.52 MB / 0.4954 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001606/0.3521, allocations: 63.8 kB / 0.4955 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.006552/0.3587, allocations: 2.005 MB / 0.4974 GB, free: 11.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3587, allocations: 3.812 kB / 0.4974 GB, free: 11.5 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004741/0.3592, allocations: 410.7 kB / 0.4978 GB, free: 11.13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3593, allocations: 7.719 kB / 0.4978 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.3593, allocations: 19.41 kB / 0.4978 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.3595, allocations: 205.8 kB / 0.498 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.3595, allocations: 7.797 kB / 0.498 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.3595, allocations: 3.906 kB / 0.498 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001467/0.3597, allocations: 73.14 kB / 0.4981 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.3599, allocations: 186.8 kB / 0.4983 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.36, allocations: 0 / 0.4983 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.36, allocations: 4 kB / 0.4983 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.36, allocations: 5.406 kB / 0.4983 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004075/0.3604, allocations: 320.4 kB / 0.4986 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.3606, allocations: 124.6 kB / 0.4987 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.716e-05/0.3607, allocations: 58.36 kB / 0.4988 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.3607, allocations: 5.25 kB / 0.4988 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.767e-05/0.3608, allocations: 83.06 kB / 0.4989 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.3608, allocations: 0 / 0.4989 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002557/0.3611, allocations: 144.5 kB / 0.499 GB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.3611, allocations: 86.38 kB / 0.4991 GB, free: 10.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.86e-05/0.3612, allocations: 138.7 kB / 0.4992 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.3612, allocations: 25.7 kB / 0.4992 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.012e-05/0.3613, allocations: 94.45 kB / 0.4993 GB, free: 10.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.3613, allocations: 27.91 kB / 0.4994 GB, free: 10.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.3613, allocations: 0 / 0.4994 GB, free: 10.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.3614, allocations: 329.5 kB / 0.4997 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.957e-05/0.3614, allocations: 25.08 kB / 0.4997 GB, free: 9.777 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.68e-05/0.3615, allocations: 97.36 kB / 0.4998 GB, free: 9.684 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.491e-05/0.3615, allocations: 45.91 kB / 0.4998 GB, free: 9.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3615, allocations: 0 / 0.4998 GB, free: 9.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001775/0.3617, allocations: 145.3 kB / 0.5 GB, free: 9.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.3617, allocations: 7.688 kB / 0.5 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.3618, allocations: 0 / 0.5 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.3618, allocations: 3.844 kB / 0.5 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.3619, allocations: 32.05 kB / 0.5 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3619, allocations: 3.844 kB / 0.5 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.211e-05/0.362, allocations: 9.484 kB / 0.5 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.362, allocations: 7.688 kB / 0.5 GB, free: 9.617 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: stateSpace2.y[1]:DISCRETE(fixed = false ) "Connector of Real output signals" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.sampler.firstTrigger,sampler.firstTrigger,$PRE.stateSpace2.firstTrigger,stateSpace2.firstTrigger,$PRE.stateSpace2.x[1],stateSpace2.x[1],$PRE.stateSpace2.y[1],stateSpace2.y[1],$whenCondition1,stateSpace2.sampleTrigger,$whenCondition2,sampler.sampleTrigger,sampler.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 8.824e-05/0.3621, allocations: 120.6 kB / 0.5001 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.092e-05/0.3622, allocations: 79.34 kB / 0.5002 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.3622, allocations: 13.56 kB / 0.5002 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3622, allocations: 3.984 kB / 0.5002 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3622, allocations: 7.891 kB / 0.5002 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3623, allocations: 5.156 kB / 0.5002 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.3626, allocations: 384.3 kB / 0.5006 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3626, allocations: 0 / 0.5006 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-05/0.3627, allocations: 14.67 kB / 0.5006 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.3627, allocations: 0 / 0.5006 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.3627, allocations: 1.734 kB / 0.5006 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3627, allocations: 3.812 kB / 0.5006 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.3627, allocations: 3.906 kB / 0.5006 GB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002068/0.3629, allocations: 265.1 kB / 0.5009 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.563e-05/0.363, allocations: 86.5 kB / 0.501 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.363, allocations: 13.02 kB / 0.501 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.3631, allocations: 6.922 kB / 0.501 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.3632, allocations: 9 kB / 0.501 GB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.3632, allocations: 13.25 kB / 0.501 GB, free: 8.887 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.042e-05/0.3632, allocations: 119.9 kB / 0.5011 GB, free: 8.805 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002588/0.3635, allocations: 22.75 kB / 0.5011 GB, free: 8.805 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 (sampler.sampleTrigger,stateSpace2.sampleTrigger,$whenCondition2,$whenCondition1,stateSpace2.firstTrigger,stateSpace2.y[1],stateSpace2.x[1],sampler.firstTrigger,sampler.y) * Number of discrete states: 1 (stateSpace2.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 7.879e-05/0.3636, allocations: 99.42 kB / 0.5012 GB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001555/0.3638, allocations: 103.9 kB / 0.5013 GB, free: 8.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3638, allocations: 0 / 0.5013 GB, free: 8.703 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.007e-05/0.3638, allocations: 44.97 kB / 0.5014 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.3641, allocations: 37.98 kB / 0.5014 GB, free: 8.691 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003692/0.3645, allocations: 185.2 kB / 0.5016 GB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.3646, allocations: 0.7425 MB / 0.5023 GB, free: 7.883 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3647, allocations: 3.938 kB / 0.5023 GB, free: 7.879 MB / 330.7 MB Notification: Performance of Templates: time 0.003006/0.3677, allocations: 1.113 MB / 0.5034 GB, free: 7.789 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)