Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents",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.002294/0.002294, allocations: 185.4 kB / 16.4 MB, free: 5.746 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.103/2.103, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001141/0.001141, allocations: 89.5 kB / 270.9 MB, free: 8.367 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.5202/0.5202, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004674/0.0004675, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1387, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5837/0.7225, allocations: 105.2 MB / 0.5815 GB, free: 13.35 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003633/0.7229, allocations: 67.97 kB / 0.5816 GB, free: 13.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2684/0.9914, allocations: 49.28 MB / 0.6297 GB, free: 11.91 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.9914, allocations: 0 / 0.6297 GB, free: 11.91 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002052/0.9916, allocations: 51.98 kB / 0.6297 GB, free: 11.86 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01351/1.005, allocations: 2.546 MB / 0.6322 GB, free: 9.254 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/1.005, allocations: 8.031 kB / 0.6322 GB, free: 9.246 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001401/1.007, allocations: 308.9 kB / 0.6325 GB, free: 8.934 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001992/1.009, allocations: 300.8 kB / 0.6328 GB, free: 8.637 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003908/1.013, allocations: 0.9823 MB / 0.6338 GB, free: 7.598 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001624/1.014, allocations: 464.1 kB / 0.6342 GB, free: 7.098 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001395/1.016, allocations: 247.6 kB / 0.6345 GB, free: 6.855 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/1.027, allocations: 2.588 MB / 0.637 GB, free: 4.18 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002601/1.028, allocations: 31.7 kB / 0.637 GB, free: 4.148 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005152/1.028, allocations: 92 kB / 0.6371 GB, free: 4.059 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.045e-05/1.028, allocations: 56 kB / 0.6372 GB, free: 4.004 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/1.041, allocations: 2.672 MB / 0.6398 GB, free: 1.32 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02428/1.065, allocations: 6.767 MB / 0.6464 GB, free: 10.45 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009636/1.075, allocations: 2.51 MB / 0.6488 GB, free: 7.816 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000623/1.076, allocations: 127.6 kB / 0.6489 GB, free: 7.676 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.236e-05/1.076, allocations: 72.92 kB / 0.649 GB, free: 7.598 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 6.733e-06/1.076, allocations: 4 kB / 0.649 GB, free: 7.594 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.06167/1.138, allocations: 14.53 MB / 0.6632 GB, free: 8.473 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002204/1.138, allocations: 329.5 kB / 0.6635 GB, free: 8.086 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002561/1.14, allocations: 0.926 MB / 0.6644 GB, free: 7.152 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008681/1.141, allocations: 101.6 kB / 0.6645 GB, free: 7.047 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008744/1.142, allocations: 0.6499 MB / 0.6652 GB, free: 6.391 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00219/1.144, allocations: 1.136 MB / 0.6663 GB, free: 5.238 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007597/1.145, allocations: 60 kB / 0.6663 GB, free: 5.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003815/1.146, allocations: 433.5 kB / 0.6667 GB, free: 4.746 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005261/1.151, allocations: 1.099 MB / 0.6678 GB, free: 3.645 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005859/1.157, allocations: 1.511 MB / 0.6693 GB, free: 2.012 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005433/1.162, allocations: 1.118 MB / 0.6704 GB, free: 0.9062 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.837e-05/1.162, allocations: 7.938 kB / 0.6704 GB, free: 0.8984 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.3632/1.526, allocations: 3.402 MB / 0.6737 GB, free: 111.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/1.526, allocations: 9.344 kB / 0.6737 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.379e-05/1.526, allocations: 10.97 kB / 0.6737 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004391/1.53, allocations: 1.049 MB / 0.6748 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006332/1.537, allocations: 0.7465 MB / 0.6755 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/1.551, allocations: 7.536 MB / 0.6828 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004385/1.556, allocations: 298.1 kB / 0.6831 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008942/1.557, allocations: 125.9 kB / 0.6832 GB, free: 106.9 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.002019/1.559, allocations: 476.9 kB / 0.6837 GB, free: 106.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008776/1.56, allocations: 218.3 kB / 0.6839 GB, free: 106.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009489/1.569, allocations: 2.506 MB / 0.6864 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.379e-05/1.569, allocations: 33.62 kB / 0.6864 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-05/1.569, allocations: 6 kB / 0.6864 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.831e-05/1.569, allocations: 18.88 kB / 0.6864 GB, free: 106.7 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.02957/1.599, allocations: 7.762 MB / 0.694 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-05/1.599, allocations: 9.656 kB / 0.694 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006554/1.606, allocations: 0.7357 MB / 0.6947 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004053/1.61, allocations: 1.04 MB / 0.6957 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008452/1.611, allocations: 112.8 kB / 0.6958 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/1.626, allocations: 10.19 MB / 0.7058 GB, free: 97.88 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/1.626, allocations: 16.72 kB / 0.7058 GB, free: 97.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02368/1.65, allocations: 6.512 MB / 0.7122 GB, free: 94.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002354/1.652, allocations: 0.5307 MB / 0.7127 GB, free: 94.06 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001125/1.654, allocations: 95.03 kB / 0.7128 GB, free: 94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004766/1.658, allocations: 300.5 kB / 0.7131 GB, free: 93.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001942/1.66, allocations: 453.7 kB / 0.7135 GB, free: 93.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006959/1.661, allocations: 131.3 kB / 0.7136 GB, free: 93.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001827/1.663, allocations: 0.7173 MB / 0.7143 GB, free: 93.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.663, allocations: 0 / 0.7143 GB, free: 93.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005021/1.668, allocations: 0.7385 MB / 0.715 GB, free: 93.47 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.02609/1.694, allocations: 9.606 MB / 0.7244 GB, free: 86.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/1.708, allocations: 3.518 MB / 0.7279 GB, free: 85.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.879e-05/1.708, allocations: 1.281 kB / 0.7279 GB, free: 85.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01091/1.719, allocations: 2.808 MB / 0.7306 GB, free: 84.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004084/1.723, allocations: 311.5 kB / 0.7309 GB, free: 84.08 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05537/1.779, allocations: 22.25 MB / 0.7526 GB, free: 69.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00189/1.781, allocations: 1.591 MB / 0.7542 GB, free: 68.24 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002574/1.783, allocations: 0.8829 MB / 0.755 GB, free: 67.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.332e-06/1.784, allocations: 4 kB / 0.755 GB, free: 67.59 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.959/5.743, allocations: 79.87 MB / 0.833 GB, free: 8.391 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat