Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001071/0.001071, allocations: 208.1 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.152/1.152, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008861/0.0008862, allocations: 95.77 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0948/0.09571, allocations: 56.9 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.1802, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2274/0.4077, allocations: 78.42 MB / 473.1 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001695/0.4079, allocations: 72.03 kB / 473.2 MB, free: 13.23 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.009419/0.4173, allocations: 4.117 MB / 477.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.4173, allocations: 12 kB / 477.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.4175, allocations: 35.19 kB / 477.4 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.4177, allocations: 232.1 kB / 477.6 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.4177, allocations: 8 kB / 477.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.4177, allocations: 19.75 kB / 477.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001838/0.4179, allocations: 96.53 kB / 477.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.4182, allocations: 172.2 kB / 477.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.4182, allocations: 3.906 kB / 477.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.4182, allocations: 0 / 477.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.4182, allocations: 8 kB / 477.9 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007203/0.4189, allocations: 0.6629 MB / 478.5 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.4191, allocations: 87.97 kB / 478.6 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.748e-05/0.4192, allocations: 56.67 kB / 478.7 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.4192, allocations: 3.328 kB / 478.7 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.33e-05/0.4192, allocations: 41.81 kB / 478.7 MB, free: 9.641 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.462e-06/0.4192, allocations: 0 / 478.7 MB, free: 9.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.00102/0.4202, allocations: 0.7429 MB / 479.5 MB, free: 8.949 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.819e-05/0.4203, allocations: 55.41 kB / 479.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.926e-05/0.4204, allocations: 141.4 kB / 479.7 MB, free: 8.762 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.4204, allocations: 25.7 kB / 479.7 MB, free: 8.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.737e-05/0.4204, allocations: 132.2 kB / 479.8 MB, free: 8.613 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.4205, allocations: 87.97 kB / 479.9 MB, free: 8.543 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.074e-06/0.4205, allocations: 0 / 479.9 MB, free: 8.543 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.837e-05/0.4205, allocations: 332 kB / 480.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.45e-05/0.4206, allocations: 45.88 kB / 480.3 MB, free: 8.199 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.522e-05/0.4207, allocations: 82.97 kB / 480.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.508e-05/0.4208, allocations: 67.78 kB / 480.4 MB, free: 8.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.4208, allocations: 0 / 480.4 MB, free: 8.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003197/0.4211, allocations: 208.5 kB / 480.6 MB, free: 7.934 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.4212, allocations: 8 kB / 480.6 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4212, allocations: 0 / 480.6 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.4213, allocations: 38.28 kB / 480.7 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.4215, allocations: 54.58 kB / 480.7 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008059/0.4223, allocations: 1.314 MB / 482 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.4225, allocations: 5.266 kB / 482 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.4225, allocations: 11.89 kB / 482.1 MB, free: 6.512 MB / 346.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 5.444e-05/0.4226, allocations: 101 kB / 482.2 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.4226, allocations: 21.09 kB / 482.2 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.042e-05/0.4226, allocations: 25.95 kB / 482.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.4227, allocations: 4 kB / 482.2 MB, free: 6.375 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.4227, allocations: 3.938 kB / 482.2 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.4227, allocations: 1.688 kB / 482.2 MB, free: 6.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006775/0.4234, allocations: 0.5836 MB / 482.8 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4234, allocations: 0 / 482.8 MB, free: 5.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.4236, allocations: 47.39 kB / 482.8 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001059/0.4237, allocations: 37.38 kB / 482.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.4237, allocations: 0.6562 kB / 482.9 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007319/0.4245, allocations: 1.317 MB / 484.2 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4245, allocations: 7.766 kB / 484.2 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003872/0.4249, allocations: 393.5 kB / 484.6 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005174/0.4254, allocations: 0.8241 MB / 485.4 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/0.4255, allocations: 97.09 kB / 485.5 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.4255, allocations: 0 / 485.5 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.4256, allocations: 9.812 kB / 485.5 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.4257, allocations: 11.98 kB / 485.5 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.4257, allocations: 12.89 kB / 485.5 MB, free: 3.258 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.597e-05/0.4257, allocations: 119.9 kB / 485.7 MB, free: 3.152 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009048/0.4267, allocations: 48 kB / 485.7 MB, free: 3.105 MB / 346.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.0001304/0.4268, allocations: 104.2 kB / 485.8 MB, free: 2.992 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.4272, allocations: 255.4 kB / 486.1 MB, free: 2.773 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.4272, allocations: 0 / 486.1 MB, free: 2.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.4274, allocations: 190.4 kB / 486.2 MB, free: 2.598 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.4277, allocations: 28.44 kB / 486.3 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007819/0.4285, allocations: 0.5183 MB / 486.8 MB, free: 2.074 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.4287, allocations: 0.7849 MB / 487.6 MB, free: 1.266 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4287, allocations: 0 / 487.6 MB, free: 1.266 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat