Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001683/0.001683, allocations: 173.1 kB / 8.187 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 89.11 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1089/0.1089, allocations: 12.59 MB / 322.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.178e-05/1.202e-05, allocations: 4 kB / 378.4 MB, free: 76.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 50.37 MB / 428.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3009/0.4052, allocations: 78.52 MB / 0.4954 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.4055, allocations: 54.78 kB / 0.4954 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01067/0.4162, allocations: 2.009 MB / 0.4974 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.885e-05/0.4162, allocations: 11.81 kB / 0.4974 GB, free: 11.59 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.0007234/0.417, allocations: 419.1 kB / 0.4978 GB, free: 11.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.417, allocations: 7.5 kB / 0.4978 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.305e-05/0.4171, allocations: 15.59 kB / 0.4978 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.4174, allocations: 211.4 kB / 0.498 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.4174, allocations: 1.078 kB / 0.498 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.4175, allocations: 7.531 kB / 0.498 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002376/0.4177, allocations: 64.52 kB / 0.4981 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000432/0.4182, allocations: 193.9 kB / 0.4983 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.4182, allocations: 0 / 0.4983 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.4182, allocations: 0 / 0.4983 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.4183, allocations: 9.234 kB / 0.4983 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006479/0.4189, allocations: 312.7 kB / 0.4986 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.4192, allocations: 122.9 kB / 0.4987 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.4193, allocations: 68.39 kB / 0.4988 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.4194, allocations: 0 / 0.4988 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.4196, allocations: 82.53 kB / 0.4988 GB, free: 10.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.274e-06/0.4196, allocations: 0 / 0.4988 GB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004093/0.42, allocations: 141.5 kB / 0.499 GB, free: 10.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.4201, allocations: 89.66 kB / 0.4991 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.4202, allocations: 140.3 kB / 0.4992 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.4202, allocations: 29.52 kB / 0.4992 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.245e-05/0.4203, allocations: 155.2 kB / 0.4994 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.243e-05/0.4203, allocations: 25.38 kB / 0.4994 GB, free: 10.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.4204, allocations: 0 / 0.4994 GB, free: 10.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.379e-05/0.4204, allocations: 325.5 kB / 0.4997 GB, free: 9.797 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.939e-05/0.4205, allocations: 24.91 kB / 0.4997 GB, free: 9.797 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.4206, allocations: 95.39 kB / 0.4998 GB, free: 9.707 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.4207, allocations: 45.45 kB / 0.4999 GB, free: 9.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4208, allocations: 0 / 0.4999 GB, free: 9.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002938/0.4211, allocations: 137.8 kB / 0.5 GB, free: 9.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.4211, allocations: 4.25 kB / 0.5 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.4211, allocations: 9.391 kB / 0.5 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.4212, allocations: 3.906 kB / 0.5 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.4214, allocations: 26.22 kB / 0.5 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.4214, allocations: 7.781 kB / 0.5 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.4215, allocations: 13.31 kB / 0.5001 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.4215, allocations: 3.781 kB / 0.5001 GB, free: 9.637 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 0.0001496/0.4217, allocations: 50.48 kB / 0.5001 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.4219, allocations: 78.09 kB / 0.5002 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.252e-05/0.422, allocations: 17.38 kB / 0.5002 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.422, allocations: 1.594 kB / 0.5002 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.422, allocations: 0 / 0.5002 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.422, allocations: 3.797 kB / 0.5002 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005396/0.4225, allocations: 376 kB / 0.5006 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.4226, allocations: 0 / 0.5006 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.4227, allocations: 19.34 kB / 0.5006 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.4227, allocations: 0 / 0.5006 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.4228, allocations: 1.078 kB / 0.5006 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4228, allocations: 3.906 kB / 0.5006 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4228, allocations: 0 / 0.5006 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000334/0.4231, allocations: 269.2 kB / 0.5008 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.4232, allocations: 90.41 kB / 0.5009 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.4232, allocations: 5.344 kB / 0.5009 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.4235, allocations: 10.91 kB / 0.5009 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.4235, allocations: 9.672 kB / 0.501 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.4235, allocations: 8.984 kB / 0.501 GB, free: 8.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.107e-05/0.4236, allocations: 115.8 kB / 0.5011 GB, free: 8.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003489/0.424, allocations: 22.84 kB / 0.5011 GB, free: 8.91 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 0.0001351/0.4242, allocations: 108.5 kB / 0.5012 GB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002817/0.4244, allocations: 95.56 kB / 0.5013 GB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4245, allocations: 0 / 0.5013 GB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.4246, allocations: 44.83 kB / 0.5013 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.425, allocations: 39.98 kB / 0.5014 GB, free: 8.801 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006948/0.4257, allocations: 231.2 kB / 0.5016 GB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002482/0.4259, allocations: 0.7428 MB / 0.5023 GB, free: 7.949 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.426, allocations: 0 / 0.5023 GB, free: 7.949 MB / 330.7 MB Notification: Performance of Templates: time 0.004262/0.4302, allocations: 1.597 MB / 0.5039 GB, free: 7.836 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestStateSpace.pipe 2>&1)