Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",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.0009404/0.0009406, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.071/1.071, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0008184/0.0008185, allocations: 100.8 kB / 280.8 MB, free: 1.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09208/0.09293, allocations: 55.81 MB / 336.6 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.2729, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07455/0.3475, allocations: 77.6 MB / 464.6 MB, free: 9.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001705/0.3477, allocations: 78.67 kB / 464.7 MB, free: 9.102 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.01068/0.3584, allocations: 4.281 MB / 469 MB, free: 4.805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.3585, allocations: 11.98 kB / 469 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.3585, allocations: 27.62 kB / 469 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.3588, allocations: 231.4 kB / 469.2 MB, free: 4.496 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.3588, allocations: 4 kB / 469.2 MB, free: 4.492 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.3588, allocations: 16 kB / 469.2 MB, free: 4.477 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000211/0.3591, allocations: 116.8 kB / 469.4 MB, free: 4.359 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.3593, allocations: 154.5 kB / 469.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3593, allocations: 0.8438 kB / 469.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.3593, allocations: 0 / 469.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.3594, allocations: 8 kB / 469.5 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007784/0.3601, allocations: 0.5773 MB / 470.1 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.3603, allocations: 124.4 kB / 470.2 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.3605, allocations: 84.84 kB / 470.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.3605, allocations: 4 kB / 470.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.3605, allocations: 34.56 kB / 470.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.3605, allocations: 5.969 kB / 470.3 MB, free: 3.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001415/0.362, allocations: 0.8923 MB / 471.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.362, allocations: 55.62 kB / 471.3 MB, free: 2.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.3621, allocations: 143.8 kB / 471.4 MB, free: 2.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3621, allocations: 29.64 kB / 471.5 MB, free: 2.086 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.43e-05/0.3622, allocations: 132.3 kB / 471.6 MB, free: 1.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.3623, allocations: 106.4 kB / 471.7 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-06/0.3623, allocations: 0 / 471.7 MB, free: 1.848 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3624, allocations: 334.8 kB / 472 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.3625, allocations: 56 kB / 472.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.3627, allocations: 93.41 kB / 472.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.3628, allocations: 69.38 kB / 472.2 MB, free: 1.293 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.3628, allocations: 0 / 472.2 MB, free: 1.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003876/0.3632, allocations: 255.5 kB / 472.5 MB, free: 1.035 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.3632, allocations: 4 kB / 472.5 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3633, allocations: 7.984 kB / 472.5 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.3634, allocations: 41.5 kB / 472.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.3637, allocations: 59.91 kB / 472.6 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.365, allocations: 1.492 MB / 474.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.3651, allocations: 4.562 kB / 474.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.3651, allocations: 12.05 kB / 474.1 MB, free: 15.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.319e-05/0.3652, allocations: 113.6 kB / 474.2 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.242e-05/0.3653, allocations: 15.81 kB / 474.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.096e-05/0.3653, allocations: 26.72 kB / 474.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3653, allocations: 4 kB / 474.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3653, allocations: 3.906 kB / 474.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3653, allocations: 4.672 kB / 474.3 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008977/0.3663, allocations: 0.6931 MB / 475 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3663, allocations: 4.094 kB / 475 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.3666, allocations: 64.94 kB / 475 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001091/0.3667, allocations: 32.83 kB / 475.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.3667, allocations: 4.938 kB / 475.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.3677, allocations: 1.316 MB / 476.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3677, allocations: 4 kB / 476.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005568/0.3683, allocations: 484 kB / 476.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007421/0.369, allocations: 0.9227 MB / 477.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.3691, allocations: 97.67 kB / 477.9 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.3691, allocations: 0 / 477.9 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3693, allocations: 11.89 kB / 477.9 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/0.3693, allocations: 19.92 kB / 477.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3694, allocations: 15.94 kB / 477.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.771e-05/0.3694, allocations: 107.3 kB / 478 MB, free: 11.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008799/0.3703, allocations: 56 kB / 478.1 MB, free: 11.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.0001614/0.3705, allocations: 111.2 kB / 478.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004764/0.371, allocations: 282.3 kB / 478.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.371, allocations: 4 kB / 478.5 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002673/0.3713, allocations: 213.6 kB / 478.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.3716, allocations: 32.17 kB / 478.7 MB, free: 10.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009851/0.3726, allocations: 0.554 MB / 479.3 MB, free: 9.781 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003518/0.3729, allocations: 0.7939 MB / 480.1 MB, free: 8.965 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3729, allocations: 0 / 480.1 MB, free: 8.965 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat