Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.002203/0.002203, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.454/2.454, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 86.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3087/0.3087, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.423e-05/2.435e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4266/0.4266, allocations: 58.84 MB / 477.2 MB, free: 5.199 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/0.631, allocations: 104.4 MB / 0.568 GB, free: 10.79 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.6314, allocations: 71.47 kB / 0.568 GB, free: 10.72 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2421/0.8734, allocations: 48.89 MB / 0.6158 GB, free: 9.656 MB / 459.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.8735, allocations: 0 / 0.6158 GB, free: 9.656 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0002339/0.8738, allocations: 55.98 kB / 0.6158 GB, free: 9.602 MB / 459.1 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.01174/0.8855, allocations: 2.348 MB / 0.6181 GB, free: 7.195 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/0.8856, allocations: 12.03 kB / 0.6181 GB, free: 7.184 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002286/0.8879, allocations: 292.9 kB / 0.6184 GB, free: 6.895 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003733/0.8917, allocations: 0.9823 MB / 0.6194 GB, free: 5.855 MB / 459.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001529/0.8933, allocations: 396.1 kB / 0.6197 GB, free: 5.422 MB / 459.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001294/0.8946, allocations: 139.8 kB / 0.6199 GB, free: 5.285 MB / 459.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008522/0.9032, allocations: 2.086 MB / 0.6219 GB, free: 3.191 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008532/0.9118, allocations: 2.04 MB / 0.6239 GB, free: 1.078 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002234/0.9121, allocations: 31.7 kB / 0.6239 GB, free: 1.047 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003509/0.9125, allocations: 0 / 0.6239 GB, free: 1.047 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.916e-05/0.9125, allocations: 56 kB / 0.624 GB, free: 0.9922 MB / 459.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02297/0.9355, allocations: 6.244 MB / 0.6301 GB, free: 10.66 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006132/0.9417, allocations: 2.092 MB / 0.6321 GB, free: 8.441 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003819/0.9456, allocations: 1.121 MB / 0.6332 GB, free: 7.309 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000562/0.9463, allocations: 127.4 kB / 0.6333 GB, free: 7.164 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.717e-05/0.9463, allocations: 68.66 kB / 0.6334 GB, free: 7.086 MB / 475.1 MB Notification: Performance of pre-optimization done (n=280): time 8.977e-06/0.9464, allocations: 7.984 kB / 0.6334 GB, free: 7.078 MB / 475.1 MB Notification: Performance of matching and sorting (n=338): time 0.3708/1.317, allocations: 10.04 MB / 0.6432 GB, free: 120.1 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/1.317, allocations: 270.9 kB / 0.6435 GB, free: 119.8 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/1.319, allocations: 0.7308 MB / 0.6442 GB, free: 119.6 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007112/1.32, allocations: 44.78 kB / 0.6442 GB, free: 119.6 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006056/1.32, allocations: 0.6832 MB / 0.6449 GB, free: 119.3 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001476/1.322, allocations: 1.092 MB / 0.646 GB, free: 118.7 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/1.322, allocations: 6.344 kB / 0.646 GB, free: 118.7 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/1.322, allocations: 433.3 kB / 0.6464 GB, free: 118.4 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/1.325, allocations: 0.9528 MB / 0.6473 GB, free: 118.4 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003417/1.329, allocations: 1.345 MB / 0.6486 GB, free: 118 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003537/1.332, allocations: 0.9735 MB / 0.6496 GB, free: 118 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-05/1.332, allocations: 5.219 kB / 0.6496 GB, free: 118 MB / 475.1 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01053/1.343, allocations: 2.954 MB / 0.6525 GB, free: 117.8 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/1.343, allocations: 13.28 kB / 0.6525 GB, free: 117.8 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.607e-05/1.343, allocations: 13.75 kB / 0.6525 GB, free: 117.8 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003715/1.347, allocations: 1.005 MB / 0.6535 GB, free: 117.8 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006158/1.353, allocations: 0.7526 MB / 0.6542 GB, free: 117.8 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/1.366, allocations: 7.29 MB / 0.6613 GB, free: 113.5 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004239/1.37, allocations: 240.4 kB / 0.6616 GB, free: 113.5 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005653/1.371, allocations: 123.2 kB / 0.6617 GB, free: 113.5 MB / 475.1 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.000927/1.372, allocations: 186.8 kB / 0.6619 GB, free: 113.4 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009803/1.382, allocations: 2.759 MB / 0.6646 GB, free: 112.4 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001272/1.383, allocations: 205.9 kB / 0.6648 GB, free: 112.3 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007396/1.391, allocations: 2.134 MB / 0.6668 GB, free: 111.5 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.429e-05/1.391, allocations: 36.09 kB / 0.6669 GB, free: 111.5 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-05/1.391, allocations: 3.469 kB / 0.6669 GB, free: 111.5 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.63e-05/1.391, allocations: 16.5 kB / 0.6669 GB, free: 111.5 MB / 475.1 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.02112/1.412, allocations: 6.889 MB / 0.6736 GB, free: 108.4 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.807e-05/1.412, allocations: 7.75 kB / 0.6736 GB, free: 108.4 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006052/1.418, allocations: 0.7333 MB / 0.6743 GB, free: 108.4 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00352/1.422, allocations: 1.005 MB / 0.6753 GB, free: 108.1 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005899/1.422, allocations: 57.14 kB / 0.6754 GB, free: 108.1 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/1.435, allocations: 9.804 MB / 0.6849 GB, free: 99.9 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-05/1.435, allocations: 15.47 kB / 0.685 GB, free: 99.89 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01208/1.447, allocations: 5.261 MB / 0.6901 GB, free: 96.78 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.449, allocations: 0.5165 MB / 0.6906 GB, free: 96.46 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/1.449, allocations: 27.06 kB / 0.6906 GB, free: 96.46 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00355/1.453, allocations: 246.3 kB / 0.6909 GB, free: 96.46 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/1.454, allocations: 455.2 kB / 0.6913 GB, free: 96.38 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003335/1.454, allocations: 131.3 kB / 0.6914 GB, free: 96.35 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0009804/1.455, allocations: 0.5485 MB / 0.692 GB, free: 96.1 MB / 475.1 MB Notification: Performance of sort global known variables: time 4.6e-07/1.455, allocations: 0 / 0.692 GB, free: 96.1 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.003841/1.459, allocations: 0.6105 MB / 0.6926 GB, free: 96.09 MB / 475.1 MB 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.0134/1.473, allocations: 8.228 MB / 0.7006 GB, free: 90.13 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.007875/1.481, allocations: 2.898 MB / 0.7034 GB, free: 88.83 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/1.481, allocations: 0 / 0.7034 GB, free: 88.83 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006866/1.488, allocations: 2.404 MB / 0.7058 GB, free: 87.61 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/1.491, allocations: 241.2 kB / 0.706 GB, free: 87.54 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/1.512, allocations: 5.939 MB / 0.7118 GB, free: 84.52 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/1.513, allocations: 1.591 MB / 0.7134 GB, free: 83.66 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002472/1.516, allocations: 0.8783 MB / 0.7142 GB, free: 82.87 MB / 475.1 MB Notification: Performance of SimCode: time 1.553e-06/1.516, allocations: 4 kB / 0.7142 GB, free: 82.86 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.941/5.457, allocations: 79.41 MB / 0.7918 GB, free: 9.762 MB / 475.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat