Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.InitialConditions,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions",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 4.0.0+maint.om/package.mo): time 0.0009354/0.0009354, allocations: 184.7 kB / 8.137 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.061/1.061, allocations: 221.4 MB / 230 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008546/0.0008546, allocations: 96.23 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09262/0.09351, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.2712, allocations: 50.4 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07434/0.3456, allocations: 76.44 MB / 463.4 MB, free: 10.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001556/0.3458, allocations: 64.92 kB / 463.5 MB, free: 10.34 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.01186/0.3576, allocations: 4.874 MB / 468.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3577, allocations: 12 kB / 468.4 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.3578, allocations: 31.62 kB / 468.4 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.3581, allocations: 242.6 kB / 468.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.3581, allocations: 8 kB / 468.7 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.3582, allocations: 19.91 kB / 468.7 MB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003102/0.3585, allocations: 149.3 kB / 468.8 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.3588, allocations: 202.5 kB / 469 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.3588, allocations: 11.98 kB / 469 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.3588, allocations: 1.25 kB / 469 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.3589, allocations: 12 kB / 469.1 MB, free: 4.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009382/0.3598, allocations: 0.6916 MB / 469.7 MB, free: 3.973 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.3601, allocations: 185.6 kB / 469.9 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.3602, allocations: 105.7 kB / 470 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.3603, allocations: 8 kB / 470 MB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.3603, allocations: 39.12 kB / 470.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 2.044e-06/0.3603, allocations: 0 / 470.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.00198/0.3623, allocations: 1.481 MB / 471.6 MB, free: 1.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.3623, allocations: 85.11 kB / 471.6 MB, free: 1.867 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.3625, allocations: 146.5 kB / 471.8 MB, free: 1.715 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.3625, allocations: 25.7 kB / 471.8 MB, free: 1.684 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.3626, allocations: 128.6 kB / 471.9 MB, free: 1.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.686e-05/0.3627, allocations: 165.5 kB / 472.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/0.3627, allocations: 0 / 472.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3628, allocations: 346.6 kB / 472.4 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.3629, allocations: 89 kB / 472.5 MB, free: 0.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.3631, allocations: 135.9 kB / 472.7 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.3633, allocations: 115.4 kB / 472.8 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3633, allocations: 4 kB / 472.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004176/0.3637, allocations: 314.4 kB / 473.1 MB, free: 392 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.3637, allocations: 11.91 kB / 473.1 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3638, allocations: 0 / 473.1 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.3638, allocations: 8.062 kB / 473.1 MB, free: 372 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.3642, allocations: 99.89 kB / 473.2 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3642, allocations: 5.625 kB / 473.2 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.3643, allocations: 1.031 kB / 473.2 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.3643, allocations: 16 kB / 473.2 MB, free: 252 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (58): * Single equations (assignments): 58 * 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 7.836e-05/0.3644, allocations: 115.5 kB / 473.3 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.055e-05/0.3645, allocations: 31.62 kB / 473.4 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.812e-05/0.3646, allocations: 33.73 kB / 473.4 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3646, allocations: 8 kB / 473.4 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3646, allocations: 0 / 473.4 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3646, allocations: 3.984 kB / 473.4 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.3656, allocations: 0.8611 MB / 474.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3657, allocations: 0 / 474.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004466/0.3661, allocations: 99.89 kB / 474.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.3661, allocations: 0.8438 kB / 474.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.3662, allocations: 4 kB / 474.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3662, allocations: 0.6875 kB / 474.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3662, allocations: 8.062 kB / 474.4 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007118/0.3669, allocations: 0.6322 MB / 475 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008996/0.3678, allocations: 1.128 MB / 476.1 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.3679, allocations: 100.8 kB / 476.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.3679, allocations: 5.25 kB / 476.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.3681, allocations: 0 / 476.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.3681, allocations: 28.8 kB / 476.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.3682, allocations: 15.94 kB / 476.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.883e-05/0.3682, allocations: 116.3 kB / 476.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008681/0.3691, allocations: 67.91 kB / 476.5 MB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (sd2.s_rel,sd2.v_rel,m4.s,m4.v,m1.s,m1.v,sd1.s_rel,sd1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 48 * 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.000125/0.3692, allocations: 107.2 kB / 476.6 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003834/0.3696, allocations: 263.7 kB / 476.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.3696, allocations: 0 / 476.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.3698, allocations: 145.2 kB / 477 MB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.3703, allocations: 45.05 kB / 477 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.3715, allocations: 0.849 MB / 477.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.3719, allocations: 0.8294 MB / 478.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3719, allocations: 0 / 478.7 MB, free: 10.57 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_InitialConditions.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.InitialConditions_res.mat does not exist to compare? outputFormat=mat