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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009268/0.0009268, allocations: 177.6 kB / 8.002 MB, free: 1.07 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.745/1.745, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000878/0.000878, allocations: 79.91 kB / 261.7 MB, free: 1.691 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.2255/0.2255, allocations: 43.5 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.057e-05/2.06e-05, allocations: 0 / 418.3 MB, free: 28.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1356, allocations: 58.86 MB / 477.2 MB, free: 1.566 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.589, allocations: 104.4 MB / 0.568 GB, free: 6.969 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001624/0.5892, allocations: 67.88 kB / 0.568 GB, free: 6.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1346/0.7239, allocations: 48.9 MB / 0.6158 GB, free: 14.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.724, allocations: 3.938 kB / 0.6158 GB, free: 14.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001086/0.7241, allocations: 48 kB / 0.6158 GB, free: 14.34 MB / 426.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.006484/0.7306, allocations: 2.355 MB / 0.6181 GB, free: 12.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.7306, allocations: 12.03 kB / 0.6182 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.732, allocations: 295.8 kB / 0.6184 GB, free: 11.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.734, allocations: 0.9788 MB / 0.6194 GB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006807/0.7347, allocations: 394.2 kB / 0.6198 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003978/0.7351, allocations: 142.6 kB / 0.6199 GB, free: 10.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003727/0.7388, allocations: 2.085 MB / 0.6219 GB, free: 8.273 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003459/0.7423, allocations: 2.045 MB / 0.6239 GB, free: 6.156 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.742e-05/0.7424, allocations: 31.7 kB / 0.624 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001877/0.7426, allocations: 0 / 0.624 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-05/0.7426, allocations: 52 kB / 0.624 GB, free: 6.074 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01232/0.755, allocations: 6.244 MB / 0.6301 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003075/0.7581, allocations: 2.085 MB / 0.6322 GB, free: 13.53 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001768/0.7599, allocations: 1.113 MB / 0.6332 GB, free: 12.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002516/0.7602, allocations: 127.4 kB / 0.6334 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.7602, allocations: 64.72 kB / 0.6334 GB, free: 12.19 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 4.629e-06/0.7602, allocations: 0 / 0.6334 GB, free: 12.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=338): time 0.01865/0.7789, allocations: 10.06 MB / 0.6432 GB, free: 1.652 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.7791, allocations: 278 kB / 0.6435 GB, free: 1.328 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.7802, allocations: 0.7274 MB / 0.6442 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004733/0.7807, allocations: 45.69 kB / 0.6443 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005713/0.7813, allocations: 0.6823 MB / 0.6449 GB, free: 15.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.7823, allocations: 1.101 MB / 0.646 GB, free: 14.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.7825, allocations: 0 / 0.646 GB, free: 14.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002541/0.7828, allocations: 432.6 kB / 0.6464 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/0.7844, allocations: 0.9554 MB / 0.6474 GB, free: 13.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.7864, allocations: 1.347 MB / 0.6487 GB, free: 11.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002074/0.7884, allocations: 0.9694 MB / 0.6496 GB, free: 10.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.7885, allocations: 0 / 0.6496 GB, free: 10.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.005825/0.7943, allocations: 3.032 MB / 0.6526 GB, free: 7.852 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.305e-05/0.7944, allocations: 12 kB / 0.6526 GB, free: 7.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.7944, allocations: 11.98 kB / 0.6526 GB, free: 7.828 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.7965, allocations: 1.014 MB / 0.6536 GB, free: 6.801 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002812/0.7993, allocations: 0.7529 MB / 0.6543 GB, free: 6.047 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008237/0.8076, allocations: 7.286 MB / 0.6614 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/0.8108, allocations: 227.8 kB / 0.6617 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007346/0.8116, allocations: 124 kB / 0.6618 GB, free: 14.11 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 (338): * Single equations (assignments): 330 * 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.001079/0.8127, allocations: 186 kB / 0.6619 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006267/0.819, allocations: 2.771 MB / 0.6647 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005627/0.8195, allocations: 201.8 kB / 0.6648 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.8238, allocations: 2.145 MB / 0.6669 GB, free: 8.746 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/0.8238, allocations: 35.94 kB / 0.667 GB, free: 8.711 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.96e-05/0.8238, allocations: 4 kB / 0.667 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.215e-05/0.8239, allocations: 15.94 kB / 0.667 GB, free: 8.691 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01248/0.8364, allocations: 6.885 MB / 0.6737 GB, free: 1.621 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/0.8364, allocations: 11.94 kB / 0.6737 GB, free: 1.609 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003172/0.8396, allocations: 0.7341 MB / 0.6744 GB, free: 0.875 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/0.842, allocations: 0.9991 MB / 0.6754 GB, free: 15.86 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003574/0.8423, allocations: 59.92 kB / 0.6755 GB, free: 15.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/0.8525, allocations: 9.805 MB / 0.6851 GB, free: 5.449 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/0.8526, allocations: 11.94 kB / 0.6851 GB, free: 5.438 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009102/0.8617, allocations: 5.258 MB / 0.6902 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.8632, allocations: 0.5139 MB / 0.6907 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004186/0.8636, allocations: 31.98 kB / 0.6907 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002048/0.8657, allocations: 247.8 kB / 0.691 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009163/0.8666, allocations: 453.1 kB / 0.6914 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/0.8668, allocations: 127.9 kB / 0.6915 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0008246/0.8677, allocations: 0.5507 MB / 0.6921 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8677, allocations: 0 / 0.6921 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002789/0.8705, allocations: 0.6093 MB / 0.6927 GB, free: 13.25 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (270): * Single equations (assignments): 263 * 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.01079/0.8813, allocations: 8.232 MB / 0.7007 GB, free: 4.668 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005119/0.8864, allocations: 2.896 MB / 0.7035 GB, free: 1.727 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/0.8865, allocations: 0 / 0.7035 GB, free: 1.727 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2476/1.134, allocations: 2.498 MB / 0.706 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/1.137, allocations: 245.7 kB / 0.7062 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01448/1.151, allocations: 5.872 MB / 0.7119 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001592/1.153, allocations: 1.589 MB / 0.7135 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001746/1.155, allocations: 300.3 kB / 0.7138 GB, free: 145.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/1.156, allocations: 0.8602 MB / 0.7146 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.172e-06/1.156, allocations: 0 / 0.7146 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08382/1.24, allocations: 50.47 MB / 0.7639 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001324/1.24, allocations: 130.4 kB / 0.764 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.71/4.951, allocations: 3.938 kB / 0.764 GB, free: 129.3 MB / 0.4948 GB (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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat