Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001342/0.001342, allocations: 183.2 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.552/1.552, 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.001023/0.001023, allocations: 98.83 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.2582/0.2582, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003884, allocations: 12 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.133, allocations: 58.86 MB / 490.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4698/0.6029, allocations: 88.3 MB / 0.565 GB, free: 11.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.6032, allocations: 71.84 kB / 0.5651 GB, free: 11.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01312/0.6164, allocations: 4.528 MB / 0.5695 GB, free: 7.555 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.6164, allocations: 0 / 0.5695 GB, free: 7.555 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.6164, allocations: 11.94 kB / 0.5695 GB, free: 7.543 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000861/0.6173, allocations: 0.5274 MB / 0.57 GB, free: 6.984 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.6174, allocations: 8.031 kB / 0.57 GB, free: 6.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.671e-05/0.6175, allocations: 27.67 kB / 0.57 GB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.6178, allocations: 235.2 kB / 0.5703 GB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.6178, allocations: 14.75 kB / 0.5703 GB, free: 6.688 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.6179, allocations: 22.78 kB / 0.5703 GB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.6184, allocations: 258.2 kB / 0.5705 GB, free: 6.488 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.6184, allocations: 0 / 0.5705 GB, free: 6.488 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.6184, allocations: 7.688 kB / 0.5705 GB, free: 6.488 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.6185, allocations: 8 kB / 0.5706 GB, free: 6.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.6189, allocations: 219.4 kB / 0.5708 GB, free: 6.332 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.6202, allocations: 0.7083 MB / 0.5715 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/0.6206, allocations: 218.6 kB / 0.5717 GB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.886e-05/0.6207, allocations: 4.234 kB / 0.5717 GB, free: 5.539 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.6207, allocations: 46.31 kB / 0.5717 GB, free: 5.488 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.463e-06/0.6207, allocations: 0 / 0.5717 GB, free: 5.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.003138/0.6239, allocations: 1.494 MB / 0.5732 GB, free: 4.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.6239, allocations: 55.41 kB / 0.5732 GB, free: 4.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.6241, allocations: 172.6 kB / 0.5734 GB, free: 3.938 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.6241, allocations: 31.89 kB / 0.5734 GB, free: 3.906 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.102e-05/0.6242, allocations: 129.6 kB / 0.5735 GB, free: 3.793 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.949e-05/0.6243, allocations: 123.1 kB / 0.5737 GB, free: 3.688 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.904e-05/0.6243, allocations: 7.062 kB / 0.5737 GB, free: 3.688 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.6245, allocations: 331.3 kB / 0.574 GB, free: 3.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.6247, allocations: 120.5 kB / 0.5741 GB, free: 3.285 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.625, allocations: 154.8 kB / 0.5742 GB, free: 3.172 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.6252, allocations: 105.5 kB / 0.5743 GB, free: 3.109 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.6252, allocations: 0 / 0.5743 GB, free: 3.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007267/0.626, allocations: 401.6 kB / 0.5747 GB, free: 2.824 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.626, allocations: 7.438 kB / 0.5747 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.626, allocations: 8.062 kB / 0.5747 GB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004281/0.6264, allocations: 191 kB / 0.5749 GB, free: 2.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.6267, allocations: 51.91 kB / 0.575 GB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006663/0.6273, allocations: 0.7188 MB / 0.5757 GB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.6276, allocations: 51.7 kB / 0.5757 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.6276, allocations: 15.98 kB / 0.5757 GB, free: 1.895 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.000156/0.6278, allocations: 144.6 kB / 0.5759 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.6278, allocations: 27.66 kB / 0.5759 GB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008902/0.6287, allocations: 454.3 kB / 0.5763 GB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.6288, allocations: 4 kB / 0.5763 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.6288, allocations: 0 / 0.5763 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.6288, allocations: 7.938 kB / 0.5764 GB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.6302, allocations: 0.9357 MB / 0.5773 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.6302, allocations: 4.062 kB / 0.5773 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.6304, allocations: 51.91 kB / 0.5773 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003341/0.6308, allocations: 174.9 kB / 0.5775 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.6308, allocations: 15.92 kB / 0.5775 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005781/0.6314, allocations: 0.6745 MB / 0.5782 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6314, allocations: 4.031 kB / 0.5782 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.6324, allocations: 0.6418 MB / 0.5788 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.6326, allocations: 124.8 kB / 0.5789 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.31e-05/0.6327, allocations: 22.27 kB / 0.5789 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.6329, allocations: 42.52 kB / 0.579 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.6331, allocations: 54.33 kB / 0.579 GB, free: 15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.048e-05/0.6331, allocations: 18.98 kB / 0.579 GB, free: 14.99 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001107/0.6332, allocations: 139.5 kB / 0.5792 GB, free: 14.87 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6332, allocations: 0 / 0.5792 GB, free: 14.87 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004013/0.6336, allocations: 81.94 kB / 0.5793 GB, free: 14.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002376/0.6339, allocations: 133.7 kB / 0.5794 GB, free: 14.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000703/0.6346, allocations: 334.6 kB / 0.5797 GB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6346, allocations: 0 / 0.5797 GB, free: 14.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.6349, allocations: 167.1 kB / 0.5799 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.6352, allocations: 31.42 kB / 0.5799 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.6371, allocations: 0.9401 MB / 0.5808 GB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.6375, allocations: 0.7644 MB / 0.5816 GB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 9.472e-05/0.6376, allocations: 22.28 kB / 0.5816 GB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.025e-05/0.6376, allocations: 19.44 kB / 0.5816 GB, free: 12.53 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6376, allocations: 0 / 0.5816 GB, free: 12.53 MB / 394.7 MB Notification: Performance of Templates: time 0.007958/0.6456, allocations: 4.352 MB / 0.5858 GB, free: 8.191 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches