Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents",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.001754/0.001754, allocations: 199.2 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 88.12 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3452/0.3452, allocations: 45.14 MB / 383.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4048/0.75, allocations: 69.37 MB / 452.7 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.9044, allocations: 63.24 MB / 0.5039 GB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4371/1.342, allocations: 109.4 MB / 0.6107 GB, free: 9.695 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/1.342, allocations: 66.47 kB / 0.6108 GB, free: 9.664 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.2034/1.545, allocations: 71.06 MB / 0.6802 GB, free: 11.23 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/1.545, allocations: 8 kB / 0.6802 GB, free: 11.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002544/1.548, allocations: 468.4 kB / 0.6806 GB, free: 10.76 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/1.551, allocations: 1.085 MB / 0.6817 GB, free: 9.621 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007991/1.552, allocations: 408.4 kB / 0.6821 GB, free: 9.176 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004723/1.552, allocations: 159.8 kB / 0.6822 GB, free: 9.02 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00443/1.557, allocations: 2.199 MB / 0.6844 GB, free: 6.812 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00419/1.561, allocations: 2.19 MB / 0.6865 GB, free: 4.535 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/1.561, allocations: 39.55 kB / 0.6865 GB, free: 4.496 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/1.561, allocations: 0 / 0.6865 GB, free: 4.496 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.165e-05/1.561, allocations: 56 kB / 0.6866 GB, free: 4.441 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01646/1.578, allocations: 7.077 MB / 0.6935 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003212/1.581, allocations: 1.535 MB / 0.695 GB, free: 11.67 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/1.583, allocations: 1.17 MB / 0.6962 GB, free: 10.48 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002878/1.584, allocations: 127.3 kB / 0.6963 GB, free: 10.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/1.584, allocations: 68.75 kB / 0.6963 GB, free: 10.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=288): time 5.16e-06/1.584, allocations: 4 kB / 0.6963 GB, free: 10.26 MB / 490.7 MB Notification: Performance of matching and sorting (n=349): time 0.02526/1.609, allocations: 10.68 MB / 0.7068 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/1.609, allocations: 299.6 kB / 0.7071 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/1.611, allocations: 0.884 MB / 0.7079 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007015/1.612, allocations: 45.69 kB / 0.708 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004899/1.612, allocations: 0.5766 MB / 0.7085 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001424/1.614, allocations: 1.128 MB / 0.7096 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002308/1.614, allocations: 12 kB / 0.7096 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002492/1.614, allocations: 429 kB / 0.7101 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/1.616, allocations: 0.9908 MB / 0.711 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/1.618, allocations: 1.423 MB / 0.7124 GB, free: 9.039 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/1.621, allocations: 0.99 MB / 0.7134 GB, free: 8.047 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.617e-05/1.621, allocations: 7.906 kB / 0.7134 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of matching and sorting (n=424) (initialization): time 0.007197/1.628, allocations: 3.137 MB / 0.7164 GB, free: 4.875 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/1.628, allocations: 4 kB / 0.7165 GB, free: 4.871 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/1.628, allocations: 12 kB / 0.7165 GB, free: 4.859 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002609/1.631, allocations: 0.964 MB / 0.7174 GB, free: 3.883 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004601/1.635, allocations: 0.866 MB / 0.7183 GB, free: 3.012 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009674/1.645, allocations: 7.033 MB / 0.7251 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003514/1.649, allocations: 283.8 kB / 0.7254 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006362/1.649, allocations: 124 kB / 0.7255 GB, free: 11.27 MB / 0.5105 GB 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 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: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (349): * Single equations (assignments): 344 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 7,1 9,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0009671/1.65, allocations: 195.8 kB / 0.7257 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008109/1.651, allocations: 217.6 kB / 0.7259 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/1.652, allocations: 0.5362 MB / 0.7264 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/1.652, allocations: 39.94 kB / 0.7265 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.348e-05/1.652, allocations: 4 kB / 0.7265 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.218e-05/1.652, allocations: 15.94 kB / 0.7265 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01725/1.67, allocations: 7.284 MB / 0.7336 GB, free: 2.793 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.939e-05/1.67, allocations: 11.98 kB / 0.7336 GB, free: 2.781 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004229/1.674, allocations: 0.8474 MB / 0.7344 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003018/1.677, allocations: 0.9673 MB / 0.7354 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007791/1.678, allocations: 59.91 kB / 0.7354 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/1.689, allocations: 9.545 MB / 0.7448 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/1.689, allocations: 11.94 kB / 0.7448 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01069/1.7, allocations: 5.488 MB / 0.7501 GB, free: 0.9258 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2389/1.939, allocations: 7.288 MB / 0.7572 GB, free: 211.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/1.941, allocations: 0.5767 MB / 0.7578 GB, free: 211.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005389/1.941, allocations: 39.28 kB / 0.7578 GB, free: 211.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/1.944, allocations: 295.7 kB / 0.7581 GB, free: 211.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008587/1.944, allocations: 397.8 kB / 0.7585 GB, free: 211.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003077/1.945, allocations: 124.2 kB / 0.7586 GB, free: 211.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001105/1.946, allocations: 0.6446 MB / 0.7593 GB, free: 211 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004314/1.95, allocations: 0.6416 MB / 0.7599 GB, free: 211 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 32 (speed2.phi,inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (278): * Single equations (assignments): 271 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 6,1 8,2 23,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001229/1.952, allocations: 373.8 kB / 0.7602 GB, free: 210.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00519/1.957, allocations: 2.837 MB / 0.763 GB, free: 210.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.957, allocations: 0 / 0.763 GB, free: 210.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005332/1.962, allocations: 2.428 MB / 0.7654 GB, free: 210.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/1.965, allocations: 260.5 kB / 0.7656 GB, free: 210.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/1.976, allocations: 5.507 MB / 0.771 GB, free: 208.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/1.978, allocations: 1.91 MB / 0.7729 GB, free: 207.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.172e-06/1.978, allocations: 0 / 0.7729 GB, free: 207.7 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat