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.00223/0.00223, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.163/2.163, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001095/0.001095, allocations: 94.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2895/0.2895, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.668e-05/3.69e-05, allocations: 8 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1584, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6074/0.7659, allocations: 101.7 MB / 0.5722 GB, free: 1.672 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.7662, allocations: 62.56 kB / 0.5722 GB, free: 1.641 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3401/1.106, allocations: 65.29 MB / 0.636 GB, free: 8.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.106, allocations: 0 / 0.636 GB, free: 8.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003569/1.107, allocations: 60 kB / 0.636 GB, free: 8.871 MB / 442.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.0191/1.126, allocations: 2.875 MB / 0.6388 GB, free: 5.941 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.51e-05/1.126, allocations: 12.03 kB / 0.6389 GB, free: 5.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002307/1.128, allocations: 396.3 kB / 0.6392 GB, free: 5.535 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004629/1.133, allocations: 403.9 kB / 0.6396 GB, free: 5.137 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007234/1.14, allocations: 1.298 MB / 0.6409 GB, free: 3.785 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002202/1.143, allocations: 0.5844 MB / 0.6415 GB, free: 3.137 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002126/1.145, allocations: 315.6 kB / 0.6418 GB, free: 2.828 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01885/1.164, allocations: 3.157 MB / 0.6448 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004107/1.164, allocations: 39.64 kB / 0.6449 GB, free: 15.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001272/1.165, allocations: 112 kB / 0.645 GB, free: 15.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/1.166, allocations: 72 kB / 0.6451 GB, free: 15.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01542/1.181, allocations: 3.08 MB / 0.6481 GB, free: 12.26 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04356/1.225, allocations: 9.794 MB / 0.6576 GB, free: 2.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01242/1.237, allocations: 2.916 MB / 0.6605 GB, free: 15.12 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007537/1.245, allocations: 1.568 MB / 0.662 GB, free: 13.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001138/1.246, allocations: 219.8 kB / 0.6622 GB, free: 13.26 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/1.246, allocations: 97.05 kB / 0.6623 GB, free: 13.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=366): time 1.245e-05/1.246, allocations: 4 kB / 0.6623 GB, free: 13.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=429): time 0.07347/1.32, allocations: 17.45 MB / 0.6794 GB, free: 10.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005212/1.32, allocations: 0.6162 MB / 0.68 GB, free: 9.863 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005324/1.326, allocations: 1.295 MB / 0.6812 GB, free: 8.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001482/1.327, allocations: 125.6 kB / 0.6813 GB, free: 8.441 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/1.329, allocations: 0.8456 MB / 0.6822 GB, free: 7.586 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003693/1.333, allocations: 1.433 MB / 0.6836 GB, free: 6.133 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001443/1.334, allocations: 91.98 kB / 0.6836 GB, free: 6.043 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006859/1.335, allocations: 471.9 kB / 0.6841 GB, free: 5.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007761/1.343, allocations: 1.344 MB / 0.6854 GB, free: 4.219 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00917/1.352, allocations: 2.071 MB / 0.6874 GB, free: 1.863 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007179/1.359, allocations: 1.371 MB / 0.6888 GB, free: 500 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.266e-05/1.359, allocations: 4 kB / 0.6888 GB, free: 496 kB / 490.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.02445/1.384, allocations: 4.51 MB / 0.6932 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.517e-05/1.384, allocations: 12 kB / 0.6932 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001063/1.384, allocations: 20 kB / 0.6932 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01012/1.394, allocations: 1.735 MB / 0.6949 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008898/1.403, allocations: 0.8113 MB / 0.6957 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.514/1.917, allocations: 16.22 MB / 0.7115 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00754/1.925, allocations: 385.8 kB / 0.7119 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/1.927, allocations: 184.5 kB / 0.7121 GB, free: 129.7 MB / 0.4948 GB 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 () * 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.002932/1.93, allocations: 366.8 kB / 0.7124 GB, free: 129.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002711/1.932, allocations: 285.2 kB / 0.7127 GB, free: 129.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009159/1.942, allocations: 1.539 MB / 0.7142 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001278/1.942, allocations: 45.03 kB / 0.7142 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-05/1.942, allocations: 6.375 kB / 0.7143 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001784/1.942, allocations: 29.17 kB / 0.7143 GB, free: 129.5 MB / 0.4948 GB 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.04943/1.992, allocations: 10.08 MB / 0.7241 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001282/1.992, allocations: 12.84 kB / 0.7241 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00953/2.001, allocations: 0.738 MB / 0.7249 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009502/2.011, allocations: 1.607 MB / 0.7264 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00146/2.012, allocations: 137.4 kB / 0.7266 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03561/2.048, allocations: 15.71 MB / 0.7419 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.961e-05/2.048, allocations: 20.81 kB / 0.7419 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03004/2.078, allocations: 7.846 MB / 0.7496 GB, free: 113.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004187/2.082, allocations: 0.6996 MB / 0.7503 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002398/2.085, allocations: 114.8 kB / 0.7504 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008899/2.094, allocations: 361.6 kB / 0.7507 GB, free: 113 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003521/2.097, allocations: 0.6077 MB / 0.7513 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001418/2.099, allocations: 170.2 kB / 0.7515 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003511/2.103, allocations: 0.982 MB / 0.7524 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.122e-06/2.103, allocations: 0 / 0.7524 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01089/2.113, allocations: 0.9892 MB / 0.7534 GB, free: 112.4 MB / 0.4948 GB 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) * 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.03309/2.147, allocations: 11.32 MB / 0.7645 GB, free: 104.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01766/2.164, allocations: 4.665 MB / 0.769 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-05/2.164, allocations: 0 / 0.769 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01468/2.179, allocations: 3.527 MB / 0.7725 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007559/2.187, allocations: 377.3 kB / 0.7728 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03376/2.221, allocations: 7.667 MB / 0.7803 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003071/2.224, allocations: 1.89 MB / 0.7821 GB, free: 95.47 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004282/2.228, allocations: 1.166 MB / 0.7833 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of SimCode: time 1.884e-06/2.228, allocations: 0 / 0.7833 GB, free: 94.62 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.096/7.324, allocations: 140.6 MB / 0.9206 GB, free: 147 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