Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",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.001843/0.001843, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.758/1.758, allocations: 225.5 MB / 234.4 MB, free: 3.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 97.25 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3217/0.3217, allocations: 45.13 MB / 383.3 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3736/0.6954, allocations: 69.37 MB / 452.7 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.8808, allocations: 63.24 MB / 0.5039 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.428/1.309, allocations: 94.66 MB / 0.5963 GB, free: 8.266 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/1.309, allocations: 66.09 kB / 0.5964 GB, free: 8.234 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.05597/1.365, allocations: 16.93 MB / 0.6129 GB, free: 9.918 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/1.365, allocations: 11.98 kB / 0.6129 GB, free: 9.906 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/1.366, allocations: 134.9 kB / 0.613 GB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/1.368, allocations: 444.5 kB / 0.6135 GB, free: 9.359 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.229e-05/1.368, allocations: 24 kB / 0.6135 GB, free: 9.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003246/1.368, allocations: 39.98 kB / 0.6135 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00221/1.371, allocations: 0.5998 MB / 0.6141 GB, free: 8.902 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/1.373, allocations: 0.6681 MB / 0.6148 GB, free: 8.379 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.048e-05/1.373, allocations: 11.7 kB / 0.6148 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/1.373, allocations: 4 kB / 0.6148 GB, free: 8.367 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/1.373, allocations: 16 kB / 0.6148 GB, free: 8.352 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008083/1.381, allocations: 2.559 MB / 0.6173 GB, free: 6.086 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/1.382, allocations: 420.8 kB / 0.6177 GB, free: 5.785 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005821/1.383, allocations: 306.2 kB / 0.618 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.683e-05/1.383, allocations: 8.188 kB / 0.618 GB, free: 5.586 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/1.383, allocations: 57.45 kB / 0.6181 GB, free: 5.527 MB / 410.7 MB Notification: Performance of pre-optimization done (n=79): time 5.27e-06/1.383, allocations: 0 / 0.6181 GB, free: 5.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.004727/1.388, allocations: 2.227 MB / 0.6202 GB, free: 3.457 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.929e-05/1.388, allocations: 144.5 kB / 0.6204 GB, free: 3.285 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006297/1.389, allocations: 377.9 kB / 0.6207 GB, free: 2.984 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.2e-05/1.389, allocations: 41.45 kB / 0.6208 GB, free: 2.945 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/1.389, allocations: 227.5 kB / 0.621 GB, free: 2.738 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002759/1.389, allocations: 286.4 kB / 0.6213 GB, free: 2.496 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/1.389, allocations: 0 / 0.6213 GB, free: 2.496 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/1.39, allocations: 369.3 kB / 0.6216 GB, free: 2.152 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005444/1.39, allocations: 294.8 kB / 0.6219 GB, free: 1.988 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006533/1.391, allocations: 450.6 kB / 0.6223 GB, free: 1.633 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/1.391, allocations: 250.6 kB / 0.6226 GB, free: 1.469 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/1.391, allocations: 0 / 0.6226 GB, free: 1.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002314/1.394, allocations: 1.011 MB / 0.6235 GB, free: 0.707 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/1.394, allocations: 4 kB / 0.6235 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/1.394, allocations: 7.906 kB / 0.6236 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/1.395, allocations: 492 kB / 0.624 GB, free: 348 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006556/1.396, allocations: 161.7 kB / 0.6242 GB, free: 192 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003641/1.399, allocations: 3.517 MB / 0.6276 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/1.4, allocations: 199.8 kB / 0.6278 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/1.401, allocations: 33 kB / 0.6278 GB, free: 12.6 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 8,1 10,1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003491/1.401, allocations: 155.2 kB / 0.628 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/1.401, allocations: 67.25 kB / 0.628 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/1.402, allocations: 79.2 kB / 0.6281 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/1.402, allocations: 15.98 kB / 0.6281 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.819e-06/1.402, allocations: 0 / 0.6281 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/1.402, allocations: 3.984 kB / 0.6281 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/1.405, allocations: 1.919 MB / 0.63 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.912e-06/1.405, allocations: 112 / 0.63 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006669/1.406, allocations: 135 kB / 0.6301 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/1.407, allocations: 461.1 kB / 0.6306 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/1.407, allocations: 26.77 kB / 0.6306 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00356/1.411, allocations: 3.46 MB / 0.634 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.411, allocations: 3.938 kB / 0.634 GB, free: 6.965 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002708/1.413, allocations: 1.551 MB / 0.6355 GB, free: 5.762 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003395/1.417, allocations: 2.315 MB / 0.6378 GB, free: 3.965 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000568/1.417, allocations: 227 kB / 0.638 GB, free: 3.762 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/1.418, allocations: 15.06 kB / 0.638 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/1.419, allocations: 187.8 kB / 0.6382 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004694/1.419, allocations: 172.5 kB / 0.6383 GB, free: 3.422 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/1.42, allocations: 30.66 kB / 0.6384 GB, free: 3.398 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004498/1.42, allocations: 285.5 kB / 0.6386 GB, free: 3.184 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001925/1.422, allocations: 187 kB / 0.6388 GB, free: 3.004 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 10,1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009862/1.423, allocations: 298.3 kB / 0.6391 GB, free: 2.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002037/1.425, allocations: 0.877 MB / 0.64 GB, free: 2.145 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.425, allocations: 0 / 0.64 GB, free: 2.145 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/1.426, allocations: 0.5243 MB / 0.6405 GB, free: 1.746 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/1.427, allocations: 96.14 kB / 0.6406 GB, free: 1.672 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004784/1.432, allocations: 1.634 MB / 0.6422 GB, free: 132 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001345/1.434, allocations: 1.012 MB / 0.6431 GB, free: 15.09 MB / 442.7 MB Notification: Performance of SimCode: time 3.296e-06/1.434, allocations: 3.938 kB / 0.6432 GB, free: 15.09 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat