Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001834/0.001834, allocations: 74.27 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002217/0.002217, allocations: 159.4 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.584/1.584, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2073/0.2073, allocations: 32.81 MB / 294.1 MB, free: 12 kB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002157, allocations: 59.91 kB / 440.5 MB, free: 9.457 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3215, allocations: 65.45 MB / 0.4941 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003566/0.3251, allocations: 2.484 MB / 0.4966 GB, free: 29.74 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.3262, allocations: 0.7008 MB / 0.4972 GB, free: 29.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.3263, allocations: 11 kB / 0.4973 GB, free: 29.24 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.3265, allocations: 40.98 kB / 0.4973 GB, free: 29.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.3266, allocations: 93.88 kB / 0.4974 GB, free: 29.15 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.3269, allocations: 96.11 kB / 0.4975 GB, free: 29.1 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.3272, allocations: 339.6 kB / 0.4978 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.3274, allocations: 58.36 kB / 0.4978 GB, free: 28.89 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.3275, allocations: 136.9 kB / 0.498 GB, free: 28.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.3277, allocations: 116.2 kB / 0.4981 GB, free: 28.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.716e-05/0.3277, allocations: 23.34 kB / 0.4981 GB, free: 28.78 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.751e-05/0.3278, allocations: 37.75 kB / 0.4981 GB, free: 28.77 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/0.3279, allocations: 52.09 kB / 0.4982 GB, free: 28.74 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.674e-05/0.328, allocations: 127.6 kB / 0.4983 GB, free: 28.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.3283, allocations: 306.8 kB / 0.4986 GB, free: 28.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.3283, allocations: 3.938 kB / 0.4986 GB, free: 28.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3283, allocations: 0 / 0.4986 GB, free: 28.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.3283, allocations: 0 / 0.4986 GB, free: 28.54 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009325/0.3293, allocations: 0.5274 MB / 0.4991 GB, free: 28.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.3293, allocations: 9.906 kB / 0.4991 GB, free: 28.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.3296, allocations: 51.03 kB / 0.4992 GB, free: 28.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000381/0.33, allocations: 215 kB / 0.4994 GB, free: 27.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.33, allocations: 25.81 kB / 0.4994 GB, free: 27.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.479e-05/0.33, allocations: 36.03 kB / 0.4995 GB, free: 27.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004311/0.3305, allocations: 279.1 kB / 0.4997 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.3305, allocations: 3.953 kB / 0.4997 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.3305, allocations: 11.31 kB / 0.4997 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.3305, allocations: 6.531 kB / 0.4997 GB, free: 27.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003761/0.3309, allocations: 184.3 kB / 0.4999 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.3322, allocations: 1.155 MB / 0.501 GB, free: 26.71 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003451/0.3325, allocations: 234.7 kB / 0.5013 GB, free: 26.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.3327, allocations: 99.53 kB / 0.5014 GB, free: 26.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.3327, allocations: 6.406 kB / 0.5014 GB, free: 26.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.3328, allocations: 37.69 kB / 0.5014 GB, free: 26.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3328, allocations: 0 / 0.5014 GB, free: 26.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=32): time 0.002081/0.3348, allocations: 1.21 MB / 0.5026 GB, free: 25.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.3349, allocations: 138.9 kB / 0.5027 GB, free: 25.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.335, allocations: 234.1 kB / 0.5029 GB, free: 25.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.3351, allocations: 29.7 kB / 0.503 GB, free: 25.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.3351, allocations: 186.5 kB / 0.5031 GB, free: 25.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.487e-05/0.3352, allocations: 118.3 kB / 0.5033 GB, free: 25.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.946e-05/0.3353, allocations: 71.33 kB / 0.5033 GB, free: 24.97 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.3353, allocations: 339.7 kB / 0.5037 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.3356, allocations: 99.52 kB / 0.5037 GB, free: 24.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.3358, allocations: 230.9 kB / 0.504 GB, free: 24.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.3363, allocations: 377.7 kB / 0.5043 GB, free: 24.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3364, allocations: 0 / 0.5043 GB, free: 24.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006411/0.337, allocations: 396.7 kB / 0.5047 GB, free: 24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.337, allocations: 6 kB / 0.5047 GB, free: 24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.337, allocations: 6.078 kB / 0.5047 GB, free: 24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.337, allocations: 9.766 kB / 0.5047 GB, free: 24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.3374, allocations: 101.9 kB / 0.5048 GB, free: 23.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.3374, allocations: 17.89 kB / 0.5048 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.3376, allocations: 24.22 kB / 0.5049 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.3376, allocations: 19.84 kB / 0.5049 GB, free: 23.97 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.3378, allocations: 146.9 kB / 0.505 GB, free: 23.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.482e-05/0.3378, allocations: 35.19 kB / 0.5051 GB, free: 23.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.828e-05/0.3379, allocations: 35.69 kB / 0.5051 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3379, allocations: 3 kB / 0.5051 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3379, allocations: 3.062 kB / 0.5051 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3379, allocations: 3.516 kB / 0.5051 GB, free: 23.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.3392, allocations: 0.8817 MB / 0.506 GB, free: 23.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3392, allocations: 3.031 kB / 0.506 GB, free: 23.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003701/0.3396, allocations: 84.22 kB / 0.506 GB, free: 23.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3396, allocations: 3.125 kB / 0.506 GB, free: 23.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.3396, allocations: 11.12 kB / 0.5061 GB, free: 23.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3396, allocations: 3.188 kB / 0.5061 GB, free: 23.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3396, allocations: 7.875 kB / 0.5061 GB, free: 23.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008246/0.3404, allocations: 0.7427 MB / 0.5068 GB, free: 22.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.3405, allocations: 24.75 kB / 0.5068 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.3405, allocations: 7.031 kB / 0.5068 GB, free: 22.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002962/0.3408, allocations: 23.05 kB / 0.5068 GB, free: 22.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.836e-05/0.3409, allocations: 27.11 kB / 0.5069 GB, free: 22.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.3409, allocations: 13.27 kB / 0.5069 GB, free: 22.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.341, allocations: 156.9 kB / 0.507 GB, free: 22.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.341, allocations: 0 / 0.507 GB, free: 22.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000485/0.3415, allocations: 69.38 kB / 0.5071 GB, free: 22.47 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.385e-05/0.3416, allocations: 110.5 kB / 0.5072 GB, free: 22.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005444/0.3421, allocations: 267.6 kB / 0.5075 GB, free: 22.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3421, allocations: 4.125 kB / 0.5075 GB, free: 22.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.3424, allocations: 125.3 kB / 0.5076 GB, free: 22.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006419/0.343, allocations: 42.94 kB / 0.5076 GB, free: 22.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.3441, allocations: 0.8795 MB / 0.5085 GB, free: 21.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.3442, allocations: 167.9 kB / 0.5086 GB, free: 21.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.3444, allocations: 33.17 kB / 0.5087 GB, free: 21.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.902e-05/0.3444, allocations: 30.3 kB / 0.5087 GB, free: 21.49 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3444, allocations: 0 / 0.5087 GB, free: 21.49 MB / 446.1 MB Notification: Performance of Templates: time 0.005568/0.35, allocations: 2.364 MB / 0.511 GB, free: 21.19 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.174036034964956]