Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_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.001419/0.00142, allocations: 183.2 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.906/1.906, allocations: 205.2 MB / 218.9 MB, free: 9.219 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.0008574/0.0008573, allocations: 97.27 kB / 267.1 MB, free: 9.285 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.523/0.523, allocations: 43.47 MB / 358.6 MB, free: 51.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.114e-05/3.116e-05, allocations: 0 / 425.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1485, allocations: 58.84 MB / 484.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4968/0.6454, allocations: 101.7 MB / 0.5722 GB, free: 4.043 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.6457, allocations: 62.59 kB / 0.5722 GB, free: 4.012 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2468/0.8925, allocations: 65.3 MB / 0.636 GB, free: 11.97 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.8925, allocations: 0 / 0.636 GB, free: 11.97 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001571/0.8927, allocations: 63.98 kB / 0.6361 GB, free: 11.91 MB / 458.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.00827/0.901, allocations: 2.879 MB / 0.6389 GB, free: 8.977 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.901, allocations: 8.031 kB / 0.6389 GB, free: 8.969 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007327/0.9018, allocations: 396.3 kB / 0.6393 GB, free: 8.574 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001436/0.9032, allocations: 405.3 kB / 0.6396 GB, free: 8.176 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002373/0.9056, allocations: 1.31 MB / 0.6409 GB, free: 6.812 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007783/0.9064, allocations: 0.5767 MB / 0.6415 GB, free: 6.172 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005068/0.9069, allocations: 307.6 kB / 0.6418 GB, free: 5.871 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005529/0.9125, allocations: 3.157 MB / 0.6449 GB, free: 2.598 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001177/0.9126, allocations: 43.64 kB / 0.6449 GB, free: 2.555 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002982/0.9129, allocations: 112 kB / 0.645 GB, free: 2.445 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.213e-05/0.913, allocations: 68 kB / 0.6451 GB, free: 2.379 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005362/0.9183, allocations: 3.084 MB / 0.6481 GB, free: 15.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01839/0.9367, allocations: 9.79 MB / 0.6576 GB, free: 5.273 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005429/0.9422, allocations: 2.922 MB / 0.6605 GB, free: 2.164 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003337/0.9456, allocations: 1.563 MB / 0.662 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004567/0.9461, allocations: 232.6 kB / 0.6622 GB, free: 300 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.84e-05/0.9462, allocations: 92.92 kB / 0.6623 GB, free: 196 kB / 474.7 MB Notification: Performance of pre-optimization done (n=366): time 9.528e-06/0.9462, allocations: 4 kB / 0.6623 GB, free: 192 kB / 474.7 MB Notification: Performance of matching and sorting (n=429): time 0.02769/0.9739, allocations: 17.44 MB / 0.6794 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002452/0.9742, allocations: 0.6162 MB / 0.68 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/0.976, allocations: 1.295 MB / 0.6812 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006368/0.9767, allocations: 129.7 kB / 0.6814 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006816/0.9774, allocations: 0.8881 MB / 0.6822 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001274/0.9786, allocations: 1.437 MB / 0.6836 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002329/0.9789, allocations: 88.19 kB / 0.6837 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002422/0.9791, allocations: 467 kB / 0.6842 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/0.9815, allocations: 1.348 MB / 0.6855 GB, free: 7.223 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00291/0.9844, allocations: 2.079 MB / 0.6875 GB, free: 4.859 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002327/0.9868, allocations: 1.359 MB / 0.6888 GB, free: 3.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.385e-05/0.9868, allocations: 4 kB / 0.6888 GB, free: 3.496 MB / 0.4948 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.3075/1.294, allocations: 4.618 MB / 0.6933 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.266e-05/1.294, allocations: 12.56 kB / 0.6934 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.155e-05/1.294, allocations: 21.84 kB / 0.6934 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004538/1.299, allocations: 1.723 MB / 0.6951 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/1.303, allocations: 0.8094 MB / 0.6959 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/1.32, allocations: 16.23 MB / 0.7117 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00346/1.323, allocations: 383.1 kB / 0.7121 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005953/1.324, allocations: 182.9 kB / 0.7122 GB, free: 105.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.0008395/1.325, allocations: 372.3 kB / 0.7126 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009449/1.326, allocations: 289.3 kB / 0.7129 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/1.329, allocations: 1.542 MB / 0.7144 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/1.329, allocations: 49.2 kB / 0.7144 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.108e-05/1.329, allocations: 9.188 kB / 0.7144 GB, free: 105.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.604e-05/1.33, allocations: 24.69 kB / 0.7145 GB, free: 105.4 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.01824/1.348, allocations: 10.08 MB / 0.7243 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.402e-05/1.348, allocations: 9.219 kB / 0.7243 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003301/1.351, allocations: 0.733 MB / 0.725 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003755/1.355, allocations: 1.602 MB / 0.7266 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008671/1.356, allocations: 138 kB / 0.7267 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01582/1.372, allocations: 15.71 MB / 0.7421 GB, free: 91.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.276e-05/1.372, allocations: 16.69 kB / 0.7421 GB, free: 91.99 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/1.386, allocations: 7.864 MB / 0.7498 GB, free: 87.18 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002174/1.388, allocations: 0.7036 MB / 0.7504 GB, free: 86.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001226/1.389, allocations: 111.9 kB / 0.7505 GB, free: 86.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004356/1.394, allocations: 353.6 kB / 0.7509 GB, free: 86.65 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002485/1.396, allocations: 0.6147 MB / 0.7515 GB, free: 86.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008603/1.397, allocations: 162.5 kB / 0.7516 GB, free: 86.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002498/1.4, allocations: 0.9838 MB / 0.7526 GB, free: 86.14 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.4, allocations: 3.719 kB / 0.7526 GB, free: 86.14 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008458/1.408, allocations: 0.9923 MB / 0.7536 GB, free: 86 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.0167/1.425, allocations: 11.31 MB / 0.7646 GB, free: 77.97 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01011/1.435, allocations: 4.657 MB / 0.7692 GB, free: 75.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.131e-05/1.435, allocations: 4.531 kB / 0.7692 GB, free: 75.72 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009245/1.444, allocations: 3.731 MB / 0.7728 GB, free: 73.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006082/1.451, allocations: 385.7 kB / 0.7732 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/1.471, allocations: 7.601 MB / 0.7806 GB, free: 69.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002169/1.473, allocations: 1.899 MB / 0.7825 GB, free: 68.82 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002724/1.476, allocations: 447 kB / 0.7829 GB, free: 68.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002102/1.478, allocations: 1.137 MB / 0.784 GB, free: 67.88 MB / 0.4948 GB Notification: Performance of SimCode: time 1.653e-06/1.478, allocations: 0 / 0.784 GB, free: 67.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.119/1.597, allocations: 74.21 MB / 0.8565 GB, free: 18.99 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/1.597, allocations: 189 kB / 0.8566 GB, free: 18.76 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.337/6.934, allocations: 0 / 0.8566 GB, free: 18.76 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat