Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001231/0.001231, allocations: 203.3 kB / 8.542 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008739/0.0008737, allocations: 96.22 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1124/0.1133, allocations: 56.89 MB / 343.2 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.2095, allocations: 51.48 MB / 394.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.25/0.4595, allocations: 78.42 MB / 473.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.4598, allocations: 70.52 kB / 473.2 MB, free: 13.24 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.01008/0.4699, allocations: 4.39 MB / 477.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4699, allocations: 8 kB / 477.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.4701, allocations: 39.14 kB / 477.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.4703, allocations: 227.2 kB / 477.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.4704, allocations: 4 kB / 477.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.4704, allocations: 19.91 kB / 477.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002051/0.4706, allocations: 111 kB / 478 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.4708, allocations: 156.5 kB / 478.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.4709, allocations: 0 / 478.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.4709, allocations: 0 / 478.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.4709, allocations: 8 kB / 478.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007164/0.4716, allocations: 0.5763 MB / 478.7 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.4718, allocations: 113.5 kB / 478.8 MB, free: 9.676 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.4719, allocations: 81.64 kB / 478.9 MB, free: 9.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.4719, allocations: 13.94 kB / 478.9 MB, free: 9.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.325e-05/0.472, allocations: 37.69 kB / 479 MB, free: 9.574 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.472, allocations: 0 / 479 MB, free: 9.574 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001296/0.4733, allocations: 0.8944 MB / 479.9 MB, free: 8.777 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.803e-05/0.4733, allocations: 59.03 kB / 479.9 MB, free: 8.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.219e-05/0.4734, allocations: 135.6 kB / 480.1 MB, free: 8.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.4734, allocations: 25.7 kB / 480.1 MB, free: 8.559 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.4735, allocations: 134.9 kB / 480.2 MB, free: 8.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.4735, allocations: 107 kB / 480.3 MB, free: 8.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.4735, allocations: 0 / 480.3 MB, free: 8.355 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.677e-05/0.4736, allocations: 330.8 kB / 480.6 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.87e-05/0.4737, allocations: 63.94 kB / 480.7 MB, free: 8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.4738, allocations: 91.56 kB / 480.8 MB, free: 7.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.4739, allocations: 71.77 kB / 480.9 MB, free: 7.902 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.4739, allocations: 0 / 480.9 MB, free: 7.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003708/0.4743, allocations: 249.3 kB / 481.1 MB, free: 7.719 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.4743, allocations: 11.91 kB / 481.1 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.4744, allocations: 4 kB / 481.1 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.4745, allocations: 40.48 kB / 481.2 MB, free: 7.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.4748, allocations: 61.97 kB / 481.2 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.4758, allocations: 1.484 MB / 482.7 MB, free: 6.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.4759, allocations: 7.984 kB / 482.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.476, allocations: 10.62 kB / 482.7 MB, free: 6.176 MB / 346.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 5.962e-05/0.476, allocations: 112.8 kB / 482.8 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.007e-05/0.4761, allocations: 15.81 kB / 482.8 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.317e-05/0.4761, allocations: 27.95 kB / 482.9 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.4761, allocations: 7.906 kB / 482.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4761, allocations: 3.984 kB / 482.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.4761, allocations: 0 / 482.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007517/0.4769, allocations: 0.702 MB / 483.6 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4769, allocations: 4.094 kB / 483.6 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.4772, allocations: 63.89 kB / 483.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.591e-05/0.4773, allocations: 32.22 kB / 483.7 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.4773, allocations: 8.578 kB / 483.7 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007108/0.478, allocations: 1.313 MB / 485 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.478, allocations: 144 / 485 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000446/0.4785, allocations: 484.9 kB / 485.5 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005991/0.4791, allocations: 0.9257 MB / 486.4 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.633e-05/0.4792, allocations: 92.17 kB / 486.5 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.4792, allocations: 11.89 kB / 486.5 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.4793, allocations: 4 kB / 486.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.4794, allocations: 20.91 kB / 486.5 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.4794, allocations: 10.31 kB / 486.5 MB, free: 2.496 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.328e-05/0.4795, allocations: 113.7 kB / 486.6 MB, free: 2.398 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008883/0.4804, allocations: 56 kB / 486.7 MB, free: 2.344 MB / 346.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.0001248/0.4805, allocations: 103.2 kB / 486.8 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004169/0.4809, allocations: 287 kB / 487.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4809, allocations: 0 / 487.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.4812, allocations: 217.9 kB / 487.3 MB, free: 1.797 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.4815, allocations: 27.61 kB / 487.3 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008554/0.4823, allocations: 0.5611 MB / 487.9 MB, free: 1.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002177/0.4826, allocations: 0.7863 MB / 488.7 MB, free: 432 kB / 346.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4826, allocations: 3.938 kB / 488.7 MB, free: 428 kB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat