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.001774/0.001779, allocations: 183.3 kB / 13.19 MB, free: 2.129 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.968/1.968, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001137/0.001137, allocations: 100.7 kB / 267.1 MB, free: 9.277 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.4691/0.4691, allocations: 43.48 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.053e-05/5.074e-05, allocations: 4 kB / 425.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1784, allocations: 58.84 MB / 484.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5175/0.6959, allocations: 105.1 MB / 0.5755 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001541/0.6961, allocations: 67.11 kB / 0.5756 GB, free: 0.707 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1824/0.8785, allocations: 49.27 MB / 0.6237 GB, free: 7.152 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.8786, allocations: 4 kB / 0.6237 GB, free: 7.148 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.8787, allocations: 51.98 kB / 0.6237 GB, free: 7.098 MB / 442.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.005704/0.8844, allocations: 2.353 MB / 0.626 GB, free: 4.828 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.8845, allocations: 8.031 kB / 0.626 GB, free: 4.82 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004314/0.8849, allocations: 309.3 kB / 0.6263 GB, free: 4.645 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009646/0.8859, allocations: 300.8 kB / 0.6266 GB, free: 4.348 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.8876, allocations: 0.9768 MB / 0.6276 GB, free: 3.508 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007495/0.8883, allocations: 468.8 kB / 0.628 GB, free: 3.082 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003721/0.8887, allocations: 244.2 kB / 0.6282 GB, free: 2.918 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003752/0.8925, allocations: 2.348 MB / 0.6305 GB, free: 1.246 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-05/0.8926, allocations: 35.52 kB / 0.6306 GB, free: 1.219 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/0.8928, allocations: 86.44 kB / 0.6307 GB, free: 1.199 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-05/0.8928, allocations: 52 kB / 0.6307 GB, free: 1.148 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003781/0.8966, allocations: 2.201 MB / 0.6329 GB, free: 14.98 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0139/0.9106, allocations: 6.759 MB / 0.6395 GB, free: 8.129 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003687/0.9143, allocations: 2.252 MB / 0.6417 GB, free: 5.746 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/0.9163, allocations: 1.218 MB / 0.6428 GB, free: 4.512 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002492/0.9166, allocations: 123 kB / 0.643 GB, free: 4.371 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.129e-05/0.9166, allocations: 76.36 kB / 0.643 GB, free: 4.285 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 5.57e-06/0.9166, allocations: 0 / 0.643 GB, free: 4.285 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.01942/0.9361, allocations: 11.1 MB / 0.6539 GB, free: 8.691 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001752/0.9363, allocations: 329.5 kB / 0.6542 GB, free: 8.305 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001359/0.9377, allocations: 0.9081 MB / 0.6551 GB, free: 7.387 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004286/0.9381, allocations: 101.6 kB / 0.6552 GB, free: 7.281 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005902/0.9387, allocations: 0.6752 MB / 0.6558 GB, free: 6.598 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.9398, allocations: 1.136 MB / 0.6569 GB, free: 5.445 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.94, allocations: 68 kB / 0.657 GB, free: 5.379 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002134/0.9402, allocations: 424.6 kB / 0.6574 GB, free: 4.957 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/0.9421, allocations: 1.01 MB / 0.6584 GB, free: 3.945 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002216/0.9443, allocations: 1.42 MB / 0.6598 GB, free: 2.402 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/0.9462, allocations: 1.013 MB / 0.6608 GB, free: 1.402 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.9463, allocations: 4 kB / 0.6608 GB, free: 1.398 MB / 474.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.007035/0.9533, allocations: 3.297 MB / 0.664 GB, free: 14.08 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.9534, allocations: 8 kB / 0.664 GB, free: 14.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-05/0.9534, allocations: 8 kB / 0.664 GB, free: 14.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00249/0.9559, allocations: 1.022 MB / 0.665 GB, free: 13.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003602/0.9596, allocations: 0.7451 MB / 0.6657 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008729/0.9683, allocations: 7.4 MB / 0.673 GB, free: 4.543 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002562/0.9709, allocations: 299.7 kB / 0.6733 GB, free: 4.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003239/0.9713, allocations: 124 kB / 0.6734 GB, free: 4.129 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 () * 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.0006167/0.9719, allocations: 296.2 kB / 0.6737 GB, free: 3.836 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004945/0.9724, allocations: 221.4 kB / 0.6739 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.9767, allocations: 2.293 MB / 0.6761 GB, free: 1.289 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.598e-05/0.9767, allocations: 32 kB / 0.6761 GB, free: 1.258 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/0.9767, allocations: 4 kB / 0.6761 GB, free: 1.254 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/0.9768, allocations: 19.94 kB / 0.6762 GB, free: 1.234 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01274/0.9895, allocations: 7.352 MB / 0.6833 GB, free: 9.684 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/0.9896, allocations: 8 kB / 0.6833 GB, free: 9.676 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003214/0.9928, allocations: 0.7375 MB / 0.6841 GB, free: 8.938 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002371/0.9952, allocations: 1.009 MB / 0.685 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004503/0.9957, allocations: 107.9 kB / 0.6852 GB, free: 7.801 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2996/1.295, allocations: 10 MB / 0.6949 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.434e-05/1.295, allocations: 19.22 kB / 0.6949 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.306, allocations: 5.752 MB / 0.7006 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/1.307, allocations: 0.5317 MB / 0.7011 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004072/1.308, allocations: 91.61 kB / 0.7012 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/1.31, allocations: 297.5 kB / 0.7014 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001205/1.311, allocations: 455.4 kB / 0.7019 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002942/1.312, allocations: 126 kB / 0.702 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001008/1.313, allocations: 0.7042 MB / 0.7027 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.9e-07/1.313, allocations: 0 / 0.7027 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003244/1.316, allocations: 0.7273 MB / 0.7034 GB, free: 117.2 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) * 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.01011/1.326, allocations: 8.86 MB / 0.7121 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004765/1.331, allocations: 3.096 MB / 0.7151 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.331, allocations: 3.031 kB / 0.7151 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005153/1.336, allocations: 2.639 MB / 0.7177 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/1.339, allocations: 309.1 kB / 0.7179 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/1.351, allocations: 6.18 MB / 0.724 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/1.352, allocations: 1.589 MB / 0.7255 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001429/1.354, allocations: 314.3 kB / 0.7258 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/1.355, allocations: 0.8687 MB / 0.7267 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/1.355, allocations: 0 / 0.7267 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09475/1.45, allocations: 53.63 MB / 0.7791 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/1.45, allocations: 180.1 kB / 0.7792 GB, free: 99.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.318/5.768, allocations: 4 kB / 0.7792 GB, free: 99.66 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