Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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) 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.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",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.001051/0.001051, allocations: 177.4 kB / 8.476 MB, free: 1.844 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.2/1.2, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009648/0.0009648, allocations: 93.92 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1685/0.1695, allocations: 52.96 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07192/0.2414, allocations: 47.58 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2179/0.4593, allocations: 76.75 MB / 439.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001639/0.4596, allocations: 70.64 kB / 439.4 MB, free: 10.77 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.009585/0.4691, allocations: 3.921 MB / 443.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.4692, allocations: 12.31 kB / 443.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.4693, allocations: 23.25 kB / 443.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.4695, allocations: 225.2 kB / 443.6 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.4695, allocations: 9.016 kB / 443.6 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.4695, allocations: 11.59 kB / 443.6 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001878/0.4697, allocations: 106.6 kB / 443.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.47, allocations: 168.8 kB / 443.9 MB, free: 9.828 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.47, allocations: 4.609 kB / 443.9 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.47, allocations: 0 / 443.9 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.47, allocations: 9.719 kB / 443.9 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008338/0.4709, allocations: 0.6608 MB / 444.6 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.471, allocations: 91.45 kB / 444.7 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.278e-05/0.4711, allocations: 54.45 kB / 444.7 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.4711, allocations: 7.625 kB / 444.7 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.4712, allocations: 31.17 kB / 444.8 MB, free: 9.395 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.452e-06/0.4712, allocations: 3.969 kB / 444.8 MB, free: 9.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.001097/0.4723, allocations: 0.7513 MB / 445.5 MB, free: 8.891 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/0.4723, allocations: 55.31 kB / 445.6 MB, free: 8.828 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.4724, allocations: 146 kB / 445.7 MB, free: 8.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.4724, allocations: 25.7 kB / 445.7 MB, free: 8.699 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.414e-05/0.4725, allocations: 139.4 kB / 445.9 MB, free: 8.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.4726, allocations: 84.34 kB / 446 MB, free: 8.531 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-06/0.4726, allocations: 0 / 446 MB, free: 8.531 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.678e-05/0.4727, allocations: 327.5 kB / 446.3 MB, free: 8.219 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.283e-05/0.4727, allocations: 49.48 kB / 446.3 MB, free: 8.215 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.663e-05/0.4728, allocations: 83.19 kB / 446.4 MB, free: 8.172 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4729, allocations: 67.38 kB / 446.5 MB, free: 8.164 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.4729, allocations: 224 / 446.5 MB, free: 8.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003309/0.4733, allocations: 202.1 kB / 446.7 MB, free: 8.109 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.4733, allocations: 11.62 kB / 446.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4733, allocations: 0 / 446.7 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/0.4735, allocations: 39.23 kB / 446.7 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002246/0.4737, allocations: 61.05 kB / 446.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008919/0.4746, allocations: 1.313 MB / 448.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.4747, allocations: 5.141 kB / 448.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.4748, allocations: 4.641 kB / 448.1 MB, free: 6.875 MB / 314.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.879e-05/0.4748, allocations: 116 kB / 448.2 MB, free: 6.762 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.874e-05/0.4749, allocations: 19.41 kB / 448.2 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.4749, allocations: 26.66 kB / 448.3 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.4749, allocations: 3.906 kB / 448.3 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.4749, allocations: 0 / 448.3 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.475, allocations: 1.359 kB / 448.3 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006626/0.4756, allocations: 0.5816 MB / 448.9 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4756, allocations: 0 / 448.9 MB, free: 6.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.4759, allocations: 45.59 kB / 448.9 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.476, allocations: 36.64 kB / 448.9 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.476, allocations: 144 / 448.9 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007429/0.4768, allocations: 1.322 MB / 450.3 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4768, allocations: 0 / 450.3 MB, free: 5.172 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004153/0.4772, allocations: 393 kB / 450.6 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006193/0.4778, allocations: 0.8165 MB / 451.5 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.4779, allocations: 93.17 kB / 451.5 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.4779, allocations: 0.7031 kB / 451.5 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.4781, allocations: 12.55 kB / 451.6 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.4781, allocations: 13.17 kB / 451.6 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.4781, allocations: 4.5 kB / 451.6 MB, free: 20.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.099e-05/0.4782, allocations: 117 kB / 451.7 MB, free: 20.19 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008672/0.4791, allocations: 50.25 kB / 451.7 MB, free: 20.19 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001209/0.4792, allocations: 96.67 kB / 451.8 MB, free: 20.1 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003668/0.4796, allocations: 259.5 kB / 452.1 MB, free: 19.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.4796, allocations: 0 / 452.1 MB, free: 19.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.4798, allocations: 188.4 kB / 452.3 MB, free: 19.88 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.4801, allocations: 44.06 kB / 452.3 MB, free: 19.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008468/0.481, allocations: 0.5208 MB / 452.8 MB, free: 19.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.4814, allocations: 0.7744 MB / 453.6 MB, free: 18.84 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4814, allocations: 0 / 453.6 MB, free: 18.84 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat