Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001545/0.001545, allocations: 185.1 kB / 7.8 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.201/1.201, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001362/0.001362, allocations: 86.3 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2077/0.2077, allocations: 43.5 MB / 352.9 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2389/0.4466, allocations: 64.95 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.803, allocations: 58.83 MB / 476.6 MB, free: 5.312 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.9547, allocations: 104.3 MB / 0.5674 GB, free: 10.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.9551, allocations: 67.45 kB / 0.5674 GB, free: 10.58 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.1549/1.11, allocations: 51.2 MB / 0.6174 GB, free: 7.141 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/1.11, allocations: 8 kB / 0.6174 GB, free: 7.133 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/1.112, allocations: 304.8 kB / 0.6177 GB, free: 6.832 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002781/1.115, allocations: 0.9862 MB / 0.6187 GB, free: 5.789 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009504/1.116, allocations: 396.1 kB / 0.6191 GB, free: 5.355 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007895/1.117, allocations: 143.8 kB / 0.6192 GB, free: 5.215 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005297/1.122, allocations: 2.093 MB / 0.6213 GB, free: 3.113 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005296/1.127, allocations: 2.051 MB / 0.6233 GB, free: 0.9805 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/1.127, allocations: 27.7 kB / 0.6233 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002566/1.128, allocations: 8 kB / 0.6233 GB, free: 0.9453 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-05/1.128, allocations: 52 kB / 0.6233 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01433/1.142, allocations: 6.266 MB / 0.6295 GB, free: 10.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002704/1.145, allocations: 1.491 MB / 0.6309 GB, free: 9.004 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001984/1.147, allocations: 1.145 MB / 0.632 GB, free: 7.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002666/1.147, allocations: 131.4 kB / 0.6322 GB, free: 7.691 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.192e-05/1.147, allocations: 68.75 kB / 0.6322 GB, free: 7.613 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 4.769e-06/1.147, allocations: 0 / 0.6322 GB, free: 7.613 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.215/1.362, allocations: 10.08 MB / 0.6421 GB, free: 175.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.43e-05/1.362, allocations: 279.1 kB / 0.6423 GB, free: 175.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008773/1.363, allocations: 0.7261 MB / 0.643 GB, free: 175.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003319/1.364, allocations: 45.77 kB / 0.6431 GB, free: 175.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005181/1.364, allocations: 0.5317 MB / 0.6436 GB, free: 175.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001178/1.365, allocations: 1.093 MB / 0.6447 GB, free: 174.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002431/1.366, allocations: 3.516 kB / 0.6447 GB, free: 174.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/1.366, allocations: 429.7 kB / 0.6451 GB, free: 174.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/1.368, allocations: 0.9595 MB / 0.646 GB, free: 174.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/1.37, allocations: 1.354 MB / 0.6474 GB, free: 173.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/1.372, allocations: 0.983 MB / 0.6483 GB, free: 173.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/1.372, allocations: 3.938 kB / 0.6483 GB, free: 173.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.006059/1.378, allocations: 3.064 MB / 0.6513 GB, free: 173.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/1.378, allocations: 3.562 kB / 0.6513 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.598e-05/1.378, allocations: 12.47 kB / 0.6513 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00209/1.38, allocations: 0.9872 MB / 0.6523 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/1.383, allocations: 0.7881 MB / 0.6531 GB, free: 173.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007942/1.391, allocations: 6.956 MB / 0.6599 GB, free: 169.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/1.394, allocations: 258.2 kB / 0.6601 GB, free: 169.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002896/1.394, allocations: 127.4 kB / 0.6602 GB, free: 169.4 MB / 474.7 MB 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: 38 * 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,$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,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006805/1.395, allocations: 196 kB / 0.6604 GB, free: 169.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004901/1.395, allocations: 201.5 kB / 0.6606 GB, free: 169.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004265/1.4, allocations: 2.172 MB / 0.6627 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.113e-05/1.4, allocations: 35.84 kB / 0.6628 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.439e-05/1.4, allocations: 9.234 kB / 0.6628 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-05/1.4, allocations: 13.41 kB / 0.6628 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/1.412, allocations: 6.885 MB / 0.6695 GB, free: 166.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.055e-05/1.412, allocations: 7.938 kB / 0.6695 GB, free: 166.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003393/1.416, allocations: 0.7806 MB / 0.6703 GB, free: 166.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/1.418, allocations: 0.9812 MB / 0.6712 GB, free: 166 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003275/1.418, allocations: 64.16 kB / 0.6713 GB, free: 166 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008254/1.427, allocations: 9.478 MB / 0.6805 GB, free: 158 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/1.427, allocations: 11.58 kB / 0.6806 GB, free: 158 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008155/1.435, allocations: 5.326 MB / 0.6858 GB, free: 154.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01257/1.447, allocations: 7.053 MB / 0.6926 GB, free: 150.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/1.449, allocations: 0.5186 MB / 0.6931 GB, free: 150.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008051/1.45, allocations: 28.06 kB / 0.6932 GB, free: 150.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002927/1.453, allocations: 276.6 kB / 0.6934 GB, free: 150.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009619/1.454, allocations: 377.1 kB / 0.6938 GB, free: 150.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004176/1.454, allocations: 129.4 kB / 0.6939 GB, free: 150.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001109/1.455, allocations: 0.5519 MB / 0.6945 GB, free: 150.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0044/1.46, allocations: 0.5932 MB / 0.695 GB, free: 150.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 31 (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 (272): * Single equations (assignments): 265 * 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 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000765/1.461, allocations: 221 kB / 0.6953 GB, free: 150 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006449/1.467, allocations: 2.826 MB / 0.698 GB, free: 148.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/1.467, allocations: 3.031 kB / 0.698 GB, free: 148.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005192/1.472, allocations: 2.371 MB / 0.7003 GB, free: 146.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/1.475, allocations: 242.4 kB / 0.7006 GB, free: 146.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/1.486, allocations: 5.221 MB / 0.7057 GB, free: 141.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002426/1.488, allocations: 1.83 MB / 0.7074 GB, free: 140.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.032e-06/1.488, allocations: 0 / 0.7074 GB, free: 140.1 MB / 474.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe 2>&1)