Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion.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.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBearingConversion",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.001574/0.001574, allocations: 181.9 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001198/0.001198, allocations: 97.16 kB / 270.9 MB, free: 8.359 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.5238/0.5238, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006617/0.0006619, allocations: 20 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1437, allocations: 58.83 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5281/0.6718, allocations: 101.7 MB / 0.5782 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.6722, allocations: 63.97 kB / 0.5782 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3357/1.008, allocations: 65.3 MB / 0.642 GB, free: 15.19 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.008, allocations: 0 / 0.642 GB, free: 15.19 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002631/1.008, allocations: 67.92 kB / 0.6421 GB, free: 15.12 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01504/1.023, allocations: 3.127 MB / 0.6451 GB, free: 11.94 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/1.023, allocations: 12.03 kB / 0.6451 GB, free: 11.93 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001883/1.025, allocations: 392.3 kB / 0.6455 GB, free: 11.54 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003229/1.029, allocations: 408.9 kB / 0.6459 GB, free: 11.13 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005247/1.034, allocations: 1.306 MB / 0.6472 GB, free: 9.773 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001611/1.035, allocations: 0.5884 MB / 0.6477 GB, free: 9.125 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001608/1.037, allocations: 311.6 kB / 0.648 GB, free: 8.82 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01545/1.053, allocations: 3.368 MB / 0.6513 GB, free: 5.332 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003523/1.053, allocations: 35.7 kB / 0.6514 GB, free: 5.297 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009849/1.054, allocations: 116 kB / 0.6515 GB, free: 5.184 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-05/1.054, allocations: 68 kB / 0.6515 GB, free: 5.117 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/1.069, allocations: 3.489 MB / 0.655 GB, free: 1.633 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03276/1.102, allocations: 9.791 MB / 0.6645 GB, free: 7.598 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/1.114, allocations: 3.138 MB / 0.6676 GB, free: 4.273 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008542/1.114, allocations: 228 kB / 0.6678 GB, free: 4.016 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001064/1.115, allocations: 88.56 kB / 0.6679 GB, free: 3.918 MB / 490.7 MB Notification: Performance of pre-optimization done (n=366): time 8.356e-06/1.115, allocations: 0 / 0.6679 GB, free: 3.918 MB / 490.7 MB Notification: Performance of matching and sorting (n=429): time 0.4292/1.544, allocations: 21.35 MB / 0.6887 GB, free: 96.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002507/1.544, allocations: 0.6086 MB / 0.6893 GB, free: 95.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003434/1.548, allocations: 1.324 MB / 0.6906 GB, free: 95.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001188/1.549, allocations: 118.2 kB / 0.6907 GB, free: 95.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008454/1.55, allocations: 0.8562 MB / 0.6916 GB, free: 94.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002313/1.552, allocations: 1.437 MB / 0.693 GB, free: 94.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009378/1.553, allocations: 83.34 kB / 0.693 GB, free: 94.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000313/1.553, allocations: 473.5 kB / 0.6935 GB, free: 93.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006003/1.559, allocations: 1.431 MB / 0.6949 GB, free: 93.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006805/1.566, allocations: 2.167 MB / 0.697 GB, free: 93.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006055/1.572, allocations: 1.463 MB / 0.6984 GB, free: 93.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.286e-05/1.572, allocations: 3.062 kB / 0.6984 GB, free: 93.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01891/1.591, allocations: 4.73 MB / 0.7031 GB, free: 92.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/1.591, allocations: 12.84 kB / 0.7031 GB, free: 92.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-05/1.591, allocations: 29.52 kB / 0.7031 GB, free: 92.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006962/1.598, allocations: 1.769 MB / 0.7048 GB, free: 92.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006373/1.605, allocations: 0.8137 MB / 0.7056 GB, free: 92.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02819/1.633, allocations: 16.55 MB / 0.7218 GB, free: 80.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005959/1.639, allocations: 384.7 kB / 0.7222 GB, free: 80.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/1.641, allocations: 186.9 kB / 0.7223 GB, free: 80.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * 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%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.003137/1.644, allocations: 0.6131 MB / 0.7229 GB, free: 79.67 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/1.645, allocations: 292.4 kB / 0.7232 GB, free: 79.53 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006726/1.652, allocations: 1.586 MB / 0.7248 GB, free: 78.78 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.829e-05/1.652, allocations: 44.84 kB / 0.7248 GB, free: 78.78 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.064e-05/1.652, allocations: 6.844 kB / 0.7248 GB, free: 78.78 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001349/1.652, allocations: 27.16 kB / 0.7248 GB, free: 78.78 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.03968/1.692, allocations: 10.42 MB / 0.735 GB, free: 73.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001112/1.692, allocations: 11.38 kB / 0.735 GB, free: 73.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006895/1.699, allocations: 0.7371 MB / 0.7357 GB, free: 73.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006921/1.706, allocations: 1.631 MB / 0.7373 GB, free: 73.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001126/1.707, allocations: 140 kB / 0.7375 GB, free: 73.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02752/1.735, allocations: 16.04 MB / 0.7531 GB, free: 60.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-05/1.735, allocations: 16.66 kB / 0.7532 GB, free: 60.23 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02774/1.763, allocations: 8.497 MB / 0.7615 GB, free: 55.22 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003354/1.766, allocations: 0.6994 MB / 0.7621 GB, free: 54.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001626/1.768, allocations: 111.9 kB / 0.7622 GB, free: 54.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006307/1.774, allocations: 353.1 kB / 0.7626 GB, free: 54.67 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003046/1.777, allocations: 0.6073 MB / 0.7632 GB, free: 54.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001289/1.779, allocations: 164.5 kB / 0.7633 GB, free: 54.53 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002913/1.782, allocations: 1.009 MB / 0.7643 GB, free: 54.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.782, allocations: 0 / 0.7643 GB, free: 54.16 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008011/1.79, allocations: 0.9906 MB / 0.7653 GB, free: 54.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.03035/1.82, allocations: 11.98 MB / 0.777 GB, free: 45.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01636/1.836, allocations: 5.04 MB / 0.7819 GB, free: 43.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.971e-05/1.837, allocations: 0 / 0.7819 GB, free: 43.47 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01246/1.849, allocations: 3.759 MB / 0.7856 GB, free: 41.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005391/1.854, allocations: 384 kB / 0.7859 GB, free: 41.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07326/1.928, allocations: 34.48 MB / 0.8196 GB, free: 10.13 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002292/1.93, allocations: 1.893 MB / 0.8215 GB, free: 8.625 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003154/1.933, allocations: 1.165 MB / 0.8226 GB, free: 7.582 MB / 490.7 MB Notification: Performance of SimCode: time 1.573e-06/1.933, allocations: 0 / 0.8226 GB, free: 7.582 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.165/7.098, allocations: 140.3 MB / 0.9596 GB, free: 94.1 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat