Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_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.001114/0.001114, allocations: 183.9 kB / 15.76 MB, free: 6.367 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.667/1.667, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001/0.001, allocations: 90.81 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2423/0.2423, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003474, allocations: 8 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1361, allocations: 58.85 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4792/0.6153, allocations: 105.2 MB / 0.5815 GB, free: 10.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.6157, allocations: 69.16 kB / 0.5816 GB, free: 10.74 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1432/0.759, allocations: 49.26 MB / 0.6297 GB, free: 1.125 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.759, allocations: 0 / 0.6297 GB, free: 1.125 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001838/0.7592, allocations: 51.98 kB / 0.6298 GB, free: 1.074 MB / 426.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.008859/0.7681, allocations: 2.54 MB / 0.6323 GB, free: 14.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.7682, allocations: 8.031 kB / 0.6323 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001274/0.7694, allocations: 309.2 kB / 0.6326 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/0.7712, allocations: 292.9 kB / 0.6328 GB, free: 14.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.7742, allocations: 0.9855 MB / 0.6338 GB, free: 13.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007573/0.775, allocations: 460.4 kB / 0.6342 GB, free: 12.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005623/0.7756, allocations: 242.3 kB / 0.6345 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005952/0.7815, allocations: 2.595 MB / 0.637 GB, free: 10.08 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.7817, allocations: 31.7 kB / 0.637 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002274/0.7819, allocations: 88 kB / 0.6371 GB, free: 9.965 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-05/0.782, allocations: 52 kB / 0.6372 GB, free: 9.914 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006178/0.7882, allocations: 2.672 MB / 0.6398 GB, free: 7.23 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01351/0.8017, allocations: 6.768 MB / 0.6464 GB, free: 368 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00493/0.8067, allocations: 2.513 MB / 0.6488 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/0.807, allocations: 127.5 kB / 0.649 GB, free: 13.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/0.807, allocations: 72.94 kB / 0.649 GB, free: 13.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 4.839e-06/0.8071, allocations: 0 / 0.649 GB, free: 13.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.03198/0.839, allocations: 14.54 MB / 0.6632 GB, free: 14.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001924/0.8393, allocations: 325.3 kB / 0.6635 GB, free: 13.99 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/0.8409, allocations: 0.9221 MB / 0.6644 GB, free: 13.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005964/0.8415, allocations: 97.69 kB / 0.6645 GB, free: 12.96 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006301/0.8421, allocations: 0.6714 MB / 0.6652 GB, free: 12.28 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/0.8435, allocations: 1.144 MB / 0.6663 GB, free: 11.12 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/0.8437, allocations: 60 kB / 0.6664 GB, free: 11.06 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002394/0.844, allocations: 428.6 kB / 0.6668 GB, free: 10.64 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.8465, allocations: 1.092 MB / 0.6678 GB, free: 9.543 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002752/0.8493, allocations: 1.508 MB / 0.6693 GB, free: 7.914 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.8517, allocations: 1.125 MB / 0.6704 GB, free: 6.801 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.8518, allocations: 4 kB / 0.6704 GB, free: 6.797 MB / 474.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.007307/0.8591, allocations: 3.505 MB / 0.6738 GB, free: 3.266 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.8591, allocations: 8 kB / 0.6738 GB, free: 3.258 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.561e-05/0.8592, allocations: 12.16 kB / 0.6739 GB, free: 3.246 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002395/0.8616, allocations: 1.053 MB / 0.6749 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/0.8656, allocations: 0.7529 MB / 0.6756 GB, free: 1.426 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.8773, allocations: 7.534 MB / 0.683 GB, free: 9.543 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003334/0.8807, allocations: 299.8 kB / 0.6833 GB, free: 9.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003709/0.8811, allocations: 120 kB / 0.6834 GB, free: 9.133 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.001586/0.8826, allocations: 485.5 kB / 0.6838 GB, free: 8.648 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006635/0.8833, allocations: 221.3 kB / 0.684 GB, free: 8.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005487/0.8888, allocations: 2.507 MB / 0.6865 GB, free: 5.891 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.108e-05/0.8889, allocations: 32 kB / 0.6865 GB, free: 5.859 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.549e-05/0.8889, allocations: 4 kB / 0.6865 GB, free: 5.855 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.805e-05/0.8889, allocations: 19.94 kB / 0.6865 GB, free: 5.836 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.01723/0.9062, allocations: 7.766 MB / 0.6941 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/0.9062, allocations: 11.98 kB / 0.6941 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003259/0.9095, allocations: 0.7413 MB / 0.6949 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/0.912, allocations: 1.04 MB / 0.6959 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003303/0.9123, allocations: 99.92 kB / 0.696 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.9238, allocations: 10.18 MB / 0.7059 GB, free: 1.164 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/0.9238, allocations: 15.94 kB / 0.7059 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3273/1.251, allocations: 6.506 MB / 0.7123 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/1.253, allocations: 0.5323 MB / 0.7128 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000487/1.253, allocations: 91.28 kB / 0.7129 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/1.256, allocations: 297.7 kB / 0.7132 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001142/1.257, allocations: 452.9 kB / 0.7136 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003024/1.257, allocations: 130.7 kB / 0.7137 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001423/1.259, allocations: 0.7156 MB / 0.7144 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.8e-07/1.259, allocations: 1.406 kB / 0.7144 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003538/1.262, allocations: 0.7286 MB / 0.7152 GB, free: 141.4 MB / 0.4948 GB 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.0143/1.277, allocations: 9.614 MB / 0.7245 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008225/1.285, allocations: 3.508 MB / 0.728 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/1.285, allocations: 0 / 0.728 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006357/1.291, allocations: 2.931 MB / 0.7308 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002756/1.294, allocations: 312.7 kB / 0.7311 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03247/1.327, allocations: 22.18 MB / 0.7528 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/1.328, allocations: 1.591 MB / 0.7543 GB, free: 121.9 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001863/1.33, allocations: 308 kB / 0.7546 GB, free: 121.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/1.331, allocations: 0.8642 MB / 0.7555 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.413e-06/1.331, allocations: 0 / 0.7555 GB, free: 121.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09372/1.425, allocations: 53.45 MB / 0.8077 GB, free: 85.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001341/1.425, allocations: 201.7 kB / 0.8079 GB, free: 85.56 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.992/5.417, allocations: 7.938 kB / 0.8079 GB, free: 85.55 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat