Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",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.001103/0.001103, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.369/1.369, allocations: 223.2 MB / 241 MB, free: 11.9 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.0009304/0.0009304, allocations: 87.52 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.4196/0.4196, allocations: 44.22 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005662/0.0005661, allocations: 8 kB / 460 MB, free: 1.453 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4626/0.4631, allocations: 61.91 MB / 0.5096 GB, free: 38.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1592/0.6224, allocations: 106.5 MB / 0.6137 GB, free: 4.555 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.6227, allocations: 75.94 kB / 0.6137 GB, free: 4.484 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1449/0.7677, allocations: 50.05 MB / 0.6626 GB, free: 2.258 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.839e-06/0.7677, allocations: 0 / 0.6626 GB, free: 2.258 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002949/0.7681, allocations: 48 kB / 0.6627 GB, free: 2.211 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.008906/0.777, allocations: 2.534 MB / 0.6651 GB, free: 15.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.189e-05/0.7771, allocations: 12.03 kB / 0.6652 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001412/0.7785, allocations: 299.9 kB / 0.6654 GB, free: 15.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/0.7804, allocations: 292.9 kB / 0.6657 GB, free: 15.01 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003353/0.7838, allocations: 0.9901 MB / 0.6667 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001083/0.7849, allocations: 468 kB / 0.6671 GB, free: 13.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/0.786, allocations: 243.6 kB / 0.6674 GB, free: 13.22 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009059/0.7951, allocations: 2.585 MB / 0.6699 GB, free: 10.54 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002042/0.7954, allocations: 31.7 kB / 0.6699 GB, free: 10.51 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002661/0.7956, allocations: 88 kB / 0.67 GB, free: 10.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.688e-05/0.7957, allocations: 52 kB / 0.6701 GB, free: 10.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006563/0.8023, allocations: 2.676 MB / 0.6727 GB, free: 7.688 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.816, allocations: 6.774 MB / 0.6793 GB, free: 0.8125 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2955/1.112, allocations: 2.498 MB / 0.6817 GB, free: 106 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004756/1.112, allocations: 127.7 kB / 0.6818 GB, free: 105.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/1.112, allocations: 78.84 kB / 0.6819 GB, free: 105.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 4.789e-06/1.112, allocations: 0 / 0.6819 GB, free: 105.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.02981/1.142, allocations: 14.53 MB / 0.6961 GB, free: 101.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/1.142, allocations: 325.9 kB / 0.6964 GB, free: 100.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/1.144, allocations: 0.9206 MB / 0.6973 GB, free: 100.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00109/1.145, allocations: 100.1 kB / 0.6974 GB, free: 100.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008876/1.146, allocations: 0.6804 MB / 0.6981 GB, free: 100.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001692/1.148, allocations: 1.129 MB / 0.6992 GB, free: 99.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002546/1.148, allocations: 66.88 kB / 0.6992 GB, free: 99.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002224/1.148, allocations: 427.7 kB / 0.6997 GB, free: 99.53 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002613/1.151, allocations: 1.095 MB / 0.7007 GB, free: 99.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002617/1.153, allocations: 1.509 MB / 0.7022 GB, free: 99.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/1.156, allocations: 1.131 MB / 0.7033 GB, free: 99.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/1.156, allocations: 2.906 kB / 0.7033 GB, free: 99.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.006993/1.163, allocations: 3.49 MB / 0.7067 GB, free: 97.76 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/1.163, allocations: 12.23 kB / 0.7067 GB, free: 97.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.356e-05/1.163, allocations: 10.03 kB / 0.7067 GB, free: 97.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/1.165, allocations: 1.051 MB / 0.7078 GB, free: 97.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003505/1.169, allocations: 0.7464 MB / 0.7085 GB, free: 97.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009779/1.179, allocations: 7.536 MB / 0.7158 GB, free: 91.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002777/1.181, allocations: 300.4 kB / 0.7161 GB, free: 91.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/1.182, allocations: 122.7 kB / 0.7162 GB, free: 91.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001297/1.183, allocations: 478.7 kB / 0.7167 GB, free: 91.23 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006172/1.184, allocations: 219.9 kB / 0.7169 GB, free: 91.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005101/1.189, allocations: 2.507 MB / 0.7194 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.541e-05/1.189, allocations: 37.72 kB / 0.7194 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.961e-05/1.189, allocations: 2.906 kB / 0.7194 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.743e-05/1.189, allocations: 19.02 kB / 0.7194 GB, free: 90.09 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.01687/1.206, allocations: 7.779 MB / 0.727 GB, free: 86.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.259e-05/1.206, allocations: 6.719 kB / 0.727 GB, free: 86.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0034/1.209, allocations: 0.7336 MB / 0.7277 GB, free: 86.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002683/1.212, allocations: 1.04 MB / 0.7288 GB, free: 86.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007556/1.213, allocations: 102 kB / 0.7289 GB, free: 86.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009574/1.223, allocations: 10.18 MB / 0.7388 GB, free: 77.59 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/1.223, allocations: 20.17 kB / 0.7388 GB, free: 77.59 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0131/1.236, allocations: 6.524 MB / 0.7452 GB, free: 74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/1.237, allocations: 0.5309 MB / 0.7457 GB, free: 73.68 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004406/1.238, allocations: 84.78 kB / 0.7458 GB, free: 73.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002299/1.24, allocations: 293.5 kB / 0.7461 GB, free: 73.57 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001089/1.241, allocations: 464.1 kB / 0.7465 GB, free: 73.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002584/1.242, allocations: 126 kB / 0.7466 GB, free: 73.46 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001096/1.243, allocations: 0.7166 MB / 0.7473 GB, free: 73.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.243, allocations: 3.5 kB / 0.7473 GB, free: 73.18 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00342/1.246, allocations: 0.7301 MB / 0.748 GB, free: 73.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01178/1.258, allocations: 9.624 MB / 0.7574 GB, free: 66.48 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00741/1.265, allocations: 3.519 MB / 0.7609 GB, free: 65.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/1.265, allocations: 7.969 kB / 0.7609 GB, free: 65.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006432/1.272, allocations: 2.922 MB / 0.7637 GB, free: 63.72 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002818/1.275, allocations: 304.9 kB / 0.764 GB, free: 63.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03315/1.308, allocations: 22.19 MB / 0.7857 GB, free: 44.78 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/1.31, allocations: 1.592 MB / 0.7873 GB, free: 43.47 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002101/1.312, allocations: 313.3 kB / 0.7876 GB, free: 43.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/1.313, allocations: 0.8639 MB / 0.7884 GB, free: 42.47 MB / 490.7 MB Notification: Performance of SimCode: time 1.934e-06/1.314, allocations: 0 / 0.7884 GB, free: 42.47 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09072/1.404, allocations: 53.42 MB / 0.8406 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/1.405, allocations: 206.2 kB / 0.8408 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.046/5.45, allocations: 3.391 kB / 0.8408 GB, free: 12.37 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat