Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",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.001727/0.001727, allocations: 192.7 kB / 7.85 MB, free: 2.488 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.897/1.897, 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.001257/0.001257, allocations: 98.7 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.1157/0.1157, allocations: 12.58 MB / 322 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2857/0.4015, allocations: 56.51 MB / 378.5 MB, free: 75.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.5119, allocations: 50.37 MB / 428.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.335/0.847, allocations: 78.8 MB / 0.4958 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004086/0.8475, allocations: 81.41 kB / 0.4958 GB, free: 11.92 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.01116/0.8586, allocations: 2.469 MB / 0.4983 GB, free: 11.4 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.8587, allocations: 7.688 kB / 0.4983 GB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.19e-05/0.8588, allocations: 19.34 kB / 0.4983 GB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.8591, allocations: 233.4 kB / 0.4985 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.8592, allocations: 3.906 kB / 0.4985 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.8592, allocations: 7.656 kB / 0.4985 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001621/0.8594, allocations: 46.45 kB / 0.4986 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004869/0.8599, allocations: 239.6 kB / 0.4988 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.8599, allocations: 4 kB / 0.4988 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.8599, allocations: 3.812 kB / 0.4988 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.86, allocations: 3.984 kB / 0.4988 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.8605, allocations: 403.1 kB / 0.4992 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.8609, allocations: 250.3 kB / 0.4994 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.861, allocations: 100.1 kB / 0.4995 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.8611, allocations: 5.422 kB / 0.4995 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.8611, allocations: 39 kB / 0.4996 GB, free: 10.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 2.073e-06/0.8611, allocations: 3.812 kB / 0.4996 GB, free: 10.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004086/0.8615, allocations: 124.3 kB / 0.4997 GB, free: 10.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.8616, allocations: 185.3 kB / 0.4999 GB, free: 10.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.8618, allocations: 162.6 kB / 0.5 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.8618, allocations: 25.7 kB / 0.5 GB, free: 9.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.8619, allocations: 99.55 kB / 0.5001 GB, free: 9.895 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.8619, allocations: 13.33 kB / 0.5001 GB, free: 9.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/0.8619, allocations: 0 / 0.5001 GB, free: 9.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.742e-05/0.862, allocations: 330.5 kB / 0.5005 GB, free: 9.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.261e-05/0.8621, allocations: 18.53 kB / 0.5005 GB, free: 9.574 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.8622, allocations: 128.3 kB / 0.5006 GB, free: 9.426 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.731e-05/0.8623, allocations: 38.52 kB / 0.5006 GB, free: 9.418 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.8623, allocations: 3.594 kB / 0.5006 GB, free: 9.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002758/0.8626, allocations: 141.8 kB / 0.5008 GB, free: 9.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.8626, allocations: 3.844 kB / 0.5008 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.8626, allocations: 3.844 kB / 0.5008 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.8627, allocations: 8.219 kB / 0.5008 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/0.8629, allocations: 40.22 kB / 0.5008 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.8629, allocations: 9.328 kB / 0.5008 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.8631, allocations: 14.94 kB / 0.5009 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.8631, allocations: 12.81 kB / 0.5009 GB, free: 9.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * 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.307e-05/0.8632, allocations: 113 kB / 0.501 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.8635, allocations: 113.9 kB / 0.5011 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.33e-05/0.8636, allocations: 27.44 kB / 0.5011 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.8636, allocations: 0 / 0.5011 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8636, allocations: 3.688 kB / 0.5011 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.8636, allocations: 1.641 kB / 0.5011 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002952/0.8639, allocations: 189.7 kB / 0.5013 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.864, allocations: 3.688 kB / 0.5013 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.8642, allocations: 41.59 kB / 0.5013 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.8643, allocations: 3.812 kB / 0.5013 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.8643, allocations: 4.75 kB / 0.5013 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.8643, allocations: 8.766 kB / 0.5014 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.8643, allocations: 3.938 kB / 0.5014 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003254/0.8647, allocations: 372.9 kB / 0.5017 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003487/0.865, allocations: 0.7309 MB / 0.5024 GB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.8651, allocations: 109.2 kB / 0.5025 GB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.8652, allocations: 3.875 kB / 0.5025 GB, free: 7.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.8655, allocations: 14.88 kB / 0.5026 GB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.8655, allocations: 11.72 kB / 0.5026 GB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.8656, allocations: 7.469 kB / 0.5026 GB, free: 7.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001205/0.8657, allocations: 125.4 kB / 0.5027 GB, free: 7.816 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001334/0.867, allocations: 15.38 kB / 0.5027 GB, free: 7.816 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.000119/0.8672, allocations: 102.3 kB / 0.5028 GB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.8675, allocations: 95.31 kB / 0.5029 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.8675, allocations: 0 / 0.5029 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.88e-05/0.8675, allocations: 3.625 kB / 0.5029 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006711/0.8682, allocations: 87.06 kB / 0.503 GB, free: 7.699 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006406/0.8688, allocations: 218.5 kB / 0.5032 GB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002977/0.8692, allocations: 0.7436 MB / 0.5039 GB, free: 6.855 MB / 330.7 MB Notification: Performance of SimCode: time 3.176e-06/0.8692, allocations: 0 / 0.5039 GB, free: 6.855 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1)