Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.001555/0.001554, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.905/1.905, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.00111/0.00111, allocations: 91.38 kB / 270.9 MB, free: 8.375 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.4994/0.4994, allocations: 43.55 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.0004699, allocations: 8 kB / 431.4 MB, free: 6.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1277, allocations: 58.84 MB / 490.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4685/0.5963, allocations: 88.3 MB / 0.565 GB, free: 14.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5966, allocations: 75.95 kB / 0.565 GB, free: 14.37 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02074/0.6174, allocations: 4.526 MB / 0.5694 GB, free: 9.867 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6174, allocations: 0 / 0.5694 GB, free: 9.867 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.166e-05/0.6175, allocations: 4 kB / 0.5694 GB, free: 9.863 MB / 394.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.001269/0.6187, allocations: 0.5287 MB / 0.57 GB, free: 9.293 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.6188, allocations: 12.03 kB / 0.57 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.775e-05/0.6189, allocations: 27.16 kB / 0.57 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.6195, allocations: 238.7 kB / 0.5702 GB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.323e-05/0.6196, allocations: 16.38 kB / 0.5702 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.6197, allocations: 27.98 kB / 0.5703 GB, free: 8.941 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008285/0.6206, allocations: 251.2 kB / 0.5705 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.6207, allocations: 7.906 kB / 0.5705 GB, free: 8.684 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.6207, allocations: 9.031 kB / 0.5705 GB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.6207, allocations: 7.938 kB / 0.5705 GB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008036/0.6216, allocations: 221.6 kB / 0.5707 GB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.6238, allocations: 0.7054 MB / 0.5714 GB, free: 7.691 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000707/0.6245, allocations: 215.3 kB / 0.5716 GB, free: 7.473 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.479e-05/0.6246, allocations: 4.234 kB / 0.5716 GB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.6247, allocations: 38.75 kB / 0.5717 GB, free: 7.422 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 6.101e-06/0.6247, allocations: 3.984 kB / 0.5717 GB, free: 7.418 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.005391/0.6301, allocations: 1.494 MB / 0.5731 GB, free: 5.816 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.6302, allocations: 55.41 kB / 0.5732 GB, free: 5.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.6304, allocations: 169.6 kB / 0.5734 GB, free: 5.578 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/0.6305, allocations: 37.7 kB / 0.5734 GB, free: 5.535 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.6307, allocations: 187.2 kB / 0.5736 GB, free: 5.352 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.6308, allocations: 122.5 kB / 0.5737 GB, free: 5.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.6309, allocations: 8 kB / 0.5737 GB, free: 5.223 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.6311, allocations: 326.8 kB / 0.574 GB, free: 4.895 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004569/0.6315, allocations: 119.7 kB / 0.5741 GB, free: 4.777 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004689/0.632, allocations: 151.4 kB / 0.5743 GB, free: 4.617 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004014/0.6324, allocations: 109.9 kB / 0.5744 GB, free: 4.512 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6324, allocations: 0 / 0.5744 GB, free: 4.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0013/0.6337, allocations: 391.2 kB / 0.5747 GB, free: 4.121 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.6338, allocations: 15.92 kB / 0.5748 GB, free: 4.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.6338, allocations: 4.062 kB / 0.5748 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007503/0.6346, allocations: 193.4 kB / 0.575 GB, free: 3.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004034/0.635, allocations: 47.97 kB / 0.575 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.6362, allocations: 0.7191 MB / 0.5757 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/0.6367, allocations: 56.05 kB / 0.5758 GB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.716e-05/0.6368, allocations: 12 kB / 0.5758 GB, free: 3.055 MB / 394.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.0002636/0.637, allocations: 145.8 kB / 0.5759 GB, free: 2.902 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.555e-05/0.6371, allocations: 27.7 kB / 0.5759 GB, free: 2.875 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.6388, allocations: 457.7 kB / 0.5764 GB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.6388, allocations: 4 kB / 0.5764 GB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.6388, allocations: 3.984 kB / 0.5764 GB, free: 2.414 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.6388, allocations: 0 / 0.5764 GB, free: 2.414 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.6414, allocations: 0.9377 MB / 0.5773 GB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.6415, allocations: 4.062 kB / 0.5773 GB, free: 1.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.6419, allocations: 52.78 kB / 0.5773 GB, free: 1.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006225/0.6426, allocations: 168.7 kB / 0.5775 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.6426, allocations: 15.98 kB / 0.5775 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.6437, allocations: 0.6771 MB / 0.5782 GB, free: 476 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.6437, allocations: 0 / 0.5782 GB, free: 476 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.6457, allocations: 0.643 MB / 0.5788 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002359/0.646, allocations: 128.9 kB / 0.5789 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.42e-05/0.6461, allocations: 16.02 kB / 0.5789 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004809/0.6466, allocations: 51.95 kB / 0.579 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.6468, allocations: 59.88 kB / 0.5791 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/0.6469, allocations: 15.94 kB / 0.5791 GB, free: 15.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.6471, allocations: 143.1 kB / 0.5792 GB, free: 15.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6471, allocations: 0 / 0.5792 GB, free: 15.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000584/0.6477, allocations: 79.94 kB / 0.5793 GB, free: 15.28 MB / 410.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.0002958/0.648, allocations: 127.2 kB / 0.5794 GB, free: 15.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.6492, allocations: 331.7 kB / 0.5797 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6493, allocations: 0 / 0.5797 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005639/0.6498, allocations: 165.8 kB / 0.5799 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.6503, allocations: 28.16 kB / 0.5799 GB, free: 14.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/0.6538, allocations: 0.9677 MB / 0.5808 GB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004474/0.6543, allocations: 0.7643 MB / 0.5816 GB, free: 12.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.6544, allocations: 19.44 kB / 0.5816 GB, free: 12.81 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6544, allocations: 0 / 0.5816 GB, free: 12.81 MB / 410.7 MB Notification: Performance of Templates: time 0.01036/0.6648, allocations: 3.973 MB / 0.5855 GB, free: 8.852 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches