Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008712/0.000871, allocations: 102.8 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4459/0.4459, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003412, allocations: 12 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4185/0.4189, allocations: 61.89 MB / 0.5096 GB, free: 37.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1369/0.5558, allocations: 103.3 MB / 0.6105 GB, free: 7.828 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.5561, allocations: 71.92 kB / 0.6105 GB, free: 7.762 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1894/0.7455, allocations: 66.29 MB / 0.6753 GB, free: 5.238 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.639e-06/0.7456, allocations: 0 / 0.6753 GB, free: 5.238 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002173/0.7458, allocations: 67.98 kB / 0.6753 GB, free: 5.172 MB / 490.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.01078/0.7566, allocations: 3.127 MB / 0.6784 GB, free: 1.984 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.7567, allocations: 12.03 kB / 0.6784 GB, free: 1.973 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001548/0.7582, allocations: 388.3 kB / 0.6788 GB, free: 1.586 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002238/0.7605, allocations: 407.9 kB / 0.6792 GB, free: 1.184 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2754/1.036, allocations: 1.303 MB / 0.6804 GB, free: 100.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001258/1.037, allocations: 0.5854 MB / 0.681 GB, free: 100.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001249/1.038, allocations: 310.5 kB / 0.6813 GB, free: 100.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007961/1.046, allocations: 3.366 MB / 0.6846 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001445/1.047, allocations: 42.67 kB / 0.6846 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003027/1.047, allocations: 117.7 kB / 0.6847 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.057e-05/1.047, allocations: 68.81 kB / 0.6848 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007522/1.055, allocations: 3.478 MB / 0.6882 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/1.073, allocations: 9.803 MB / 0.6978 GB, free: 97.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005652/1.078, allocations: 3.135 MB / 0.7008 GB, free: 96.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004276/1.079, allocations: 228.5 kB / 0.7011 GB, free: 96.61 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.058e-05/1.079, allocations: 91.5 kB / 0.7012 GB, free: 96.56 MB / 490.7 MB Notification: Performance of pre-optimization done (n=366): time 7.123e-06/1.079, allocations: 0 / 0.7012 GB, free: 96.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=429): time 0.04699/1.126, allocations: 21.38 MB / 0.722 GB, free: 83.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001942/1.126, allocations: 0.6125 MB / 0.7226 GB, free: 82.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00248/1.129, allocations: 1.312 MB / 0.7239 GB, free: 82.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007981/1.129, allocations: 121 kB / 0.724 GB, free: 82.26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000726/1.13, allocations: 0.8995 MB / 0.7249 GB, free: 81.63 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001452/1.132, allocations: 1.438 MB / 0.7263 GB, free: 80.54 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/1.132, allocations: 87.47 kB / 0.7264 GB, free: 80.47 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002573/1.132, allocations: 467.9 kB / 0.7268 GB, free: 80.09 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/1.135, allocations: 1.433 MB / 0.7282 GB, free: 79.59 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004062/1.14, allocations: 2.172 MB / 0.7304 GB, free: 78.25 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003384/1.143, allocations: 1.449 MB / 0.7318 GB, free: 77.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.316e-05/1.143, allocations: 3.781 kB / 0.7318 GB, free: 77.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0105/1.154, allocations: 4.833 MB / 0.7365 GB, free: 75.75 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/1.154, allocations: 14.66 kB / 0.7365 GB, free: 75.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-05/1.154, allocations: 25.52 kB / 0.7365 GB, free: 75.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00433/1.158, allocations: 1.781 MB / 0.7383 GB, free: 75.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/1.162, allocations: 0.8117 MB / 0.7391 GB, free: 75.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01725/1.179, allocations: 16.55 MB / 0.7552 GB, free: 61.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/1.183, allocations: 379.6 kB / 0.7556 GB, free: 61.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000675/1.184, allocations: 187.4 kB / 0.7558 GB, free: 61.75 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.001766/1.185, allocations: 0.6157 MB / 0.7564 GB, free: 61.32 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009833/1.186, allocations: 292.9 kB / 0.7566 GB, free: 61.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/1.19, allocations: 1.592 MB / 0.7582 GB, free: 60.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-05/1.19, allocations: 42 kB / 0.7582 GB, free: 60.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.344e-05/1.19, allocations: 7.438 kB / 0.7582 GB, free: 60.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.074e-05/1.19, allocations: 24.91 kB / 0.7583 GB, free: 60.41 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.0219/1.212, allocations: 10.41 MB / 0.7684 GB, free: 55.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.462e-05/1.212, allocations: 10.22 kB / 0.7685 GB, free: 55.44 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003316/1.215, allocations: 0.7359 MB / 0.7692 GB, free: 55.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003858/1.219, allocations: 1.643 MB / 0.7708 GB, free: 54.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009413/1.22, allocations: 134.6 kB / 0.7709 GB, free: 54.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01674/1.237, allocations: 16.02 MB / 0.7865 GB, free: 41.82 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-05/1.237, allocations: 15.88 kB / 0.7866 GB, free: 41.81 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/1.254, allocations: 8.52 MB / 0.7949 GB, free: 33.61 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002545/1.257, allocations: 0.6997 MB / 0.7956 GB, free: 33.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001452/1.258, allocations: 111.4 kB / 0.7957 GB, free: 32.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003923/1.262, allocations: 355.4 kB / 0.796 GB, free: 32.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001792/1.264, allocations: 0.6108 MB / 0.7966 GB, free: 32.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006443/1.265, allocations: 165.5 kB / 0.7968 GB, free: 32.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002051/1.267, allocations: 1.008 MB / 0.7977 GB, free: 31.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.267, allocations: 0 / 0.7977 GB, free: 31.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00592/1.273, allocations: 0.9848 MB / 0.7987 GB, free: 30.38 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.01602/1.289, allocations: 11.97 MB / 0.8104 GB, free: 18.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009085/1.298, allocations: 5.042 MB / 0.8153 GB, free: 14.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.298, allocations: 0 / 0.8153 GB, free: 14.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007979/1.306, allocations: 3.984 MB / 0.8192 GB, free: 10.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004128/1.31, allocations: 381.5 kB / 0.8196 GB, free: 10.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05537/1.366, allocations: 34.78 MB / 0.8535 GB, free: 9.367 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/1.368, allocations: 1.898 MB / 0.8554 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002538/1.371, allocations: 449.8 kB / 0.8558 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/1.373, allocations: 1.137 MB / 0.8569 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of SimCode: time 8.21e-07/1.373, allocations: 0 / 0.8569 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4444/1.817, allocations: 74.02 MB / 0.9292 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/1.817, allocations: 203.3 kB / 0.9294 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.039/6.856, allocations: 3.234 kB / 0.9294 GB, free: 128.2 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat