Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",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.001124/0.001124, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009523/0.0009522, allocations: 86.64 kB / 261.8 MB, free: 1.676 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.233/0.233, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.094e-05/2.097e-05, allocations: 0 / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1217, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4184/0.5401, allocations: 90.78 MB / 0.5547 GB, free: 4.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001487/0.5403, allocations: 71 kB / 0.5547 GB, free: 4.355 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03193/0.5722, allocations: 11.84 MB / 0.5663 GB, free: 10.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5723, allocations: 0.8438 kB / 0.5663 GB, free: 10.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.512e-05/0.5723, allocations: 23.98 kB / 0.5663 GB, free: 10.3 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001934/0.5743, allocations: 0.9474 MB / 0.5673 GB, free: 9.355 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.5743, allocations: 8.031 kB / 0.5673 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.5745, allocations: 79.06 kB / 0.5673 GB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.5751, allocations: 394.2 kB / 0.5677 GB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.5751, allocations: 27.36 kB / 0.5677 GB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.5753, allocations: 39.91 kB / 0.5678 GB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009193/0.5762, allocations: 0.5691 MB / 0.5683 GB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.5772, allocations: 0.6691 MB / 0.569 GB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.5773, allocations: 7.906 kB / 0.569 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-05/0.5773, allocations: 3.953 kB / 0.569 GB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.5774, allocations: 16 kB / 0.569 GB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004013/0.5814, allocations: 2.465 MB / 0.5714 GB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008686/0.5823, allocations: 0.5507 MB / 0.572 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004467/0.5827, allocations: 314 kB / 0.5723 GB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-05/0.5828, allocations: 11.98 kB / 0.5723 GB, free: 5.051 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.5829, allocations: 45.75 kB / 0.5723 GB, free: 5.004 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 3.928e-06/0.5829, allocations: 0 / 0.5723 GB, free: 5.004 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004134/0.587, allocations: 2.317 MB / 0.5746 GB, free: 2.828 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.5871, allocations: 136.5 kB / 0.5747 GB, free: 2.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.5874, allocations: 312.4 kB / 0.575 GB, free: 2.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.464e-05/0.5875, allocations: 36.27 kB / 0.575 GB, free: 2.375 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.5877, allocations: 263.9 kB / 0.5753 GB, free: 2.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.5879, allocations: 274.2 kB / 0.5755 GB, free: 1.938 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.138e-05/0.588, allocations: 0 / 0.5755 GB, free: 1.938 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5881, allocations: 374.5 kB / 0.5759 GB, free: 1.586 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.5885, allocations: 292.2 kB / 0.5762 GB, free: 1.422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.589, allocations: 461.5 kB / 0.5766 GB, free: 1.055 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005765/0.5896, allocations: 260.3 kB / 0.5769 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5896, allocations: 0 / 0.5769 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00213/0.5918, allocations: 1.052 MB / 0.5779 GB, free: 72 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.5918, allocations: 5.406 kB / 0.5779 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.5918, allocations: 8 kB / 0.5779 GB, free: 60 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.5929, allocations: 0.5827 MB / 0.5785 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005283/0.5934, allocations: 155.6 kB / 0.5786 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.5956, allocations: 2.656 MB / 0.5812 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009825/0.5966, allocations: 175.7 kB / 0.5814 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.5967, allocations: 43.3 kB / 0.5814 GB, free: 12.72 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($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,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002984/0.597, allocations: 147.8 kB / 0.5816 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001966/0.599, allocations: 0.8708 MB / 0.5824 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.5992, allocations: 65.62 kB / 0.5825 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.6012, allocations: 0.9585 MB / 0.5834 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.6013, allocations: 15.94 kB / 0.5834 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.6013, allocations: 3.984 kB / 0.5834 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.6013, allocations: 4 kB / 0.5834 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.6049, allocations: 1.911 MB / 0.5853 GB, free: 9.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.6049, allocations: 4 kB / 0.5853 GB, free: 9.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005775/0.6055, allocations: 127.8 kB / 0.5854 GB, free: 9.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009414/0.6065, allocations: 0.5463 MB / 0.586 GB, free: 8.945 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-05/0.6065, allocations: 26.83 kB / 0.586 GB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/0.6088, allocations: 2.582 MB / 0.5885 GB, free: 6.438 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.6088, allocations: 4.031 kB / 0.5885 GB, free: 6.434 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.6111, allocations: 1.59 MB / 0.5901 GB, free: 5.148 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/0.6115, allocations: 211.7 kB / 0.5903 GB, free: 4.953 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.6116, allocations: 15.5 kB / 0.5903 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008855/0.6125, allocations: 163.8 kB / 0.5904 GB, free: 4.785 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.6128, allocations: 176.8 kB / 0.5906 GB, free: 4.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.149e-05/0.6129, allocations: 39.3 kB / 0.5907 GB, free: 4.602 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002837/0.6132, allocations: 251.9 kB / 0.5909 GB, free: 4.406 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6132, allocations: 0 / 0.5909 GB, free: 4.406 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008624/0.6141, allocations: 167.9 kB / 0.5911 GB, free: 4.242 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003179/0.6173, allocations: 2.503 MB / 0.5935 GB, free: 2.039 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.6188, allocations: 0.8687 MB / 0.5943 GB, free: 1.395 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.6188, allocations: 4 kB / 0.5944 GB, free: 1.391 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008582/0.6197, allocations: 458 kB / 0.5948 GB, free: 1.082 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007234/0.6204, allocations: 78.36 kB / 0.5949 GB, free: 1.023 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004676/0.6251, allocations: 2.094 MB / 0.5969 GB, free: 15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.6256, allocations: 0.9259 MB / 0.5978 GB, free: 14.05 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.6259, allocations: 56.83 kB / 0.5979 GB, free: 13.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.6261, allocations: 202.9 kB / 0.5981 GB, free: 13.94 MB / 410.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6261, allocations: 4 kB / 0.5981 GB, free: 13.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04045/0.6666, allocations: 17.49 MB / 0.6151 GB, free: 12.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/0.6669, allocations: 121.2 kB / 0.6153 GB, free: 12.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/2.971, allocations: 4.031 kB / 0.6153 GB, free: 12.29 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat