Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 210.1 kB / 25.13 MB, free: 3.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 230.4 MB / 258.7 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2238/0.2238, allocations: 46.94 MB / 362 MB, free: 4.246 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 91.84 kB / 0.4978 GB, free: 7.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.345, allocations: 66.08 MB / 0.5623 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004297/0.3493, allocations: 2.637 MB / 0.5649 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.3509, allocations: 0.7322 MB / 0.5656 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.351, allocations: 19.88 kB / 0.5656 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.3512, allocations: 43.52 kB / 0.5657 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.3514, allocations: 83.2 kB / 0.5657 GB, free: 0.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.3517, allocations: 99.86 kB / 0.5658 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.3521, allocations: 338.5 kB / 0.5662 GB, free: 328 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.3523, allocations: 73.72 kB / 0.5662 GB, free: 248 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.3526, allocations: 135.5 kB / 0.5664 GB, free: 112 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.3528, allocations: 131.5 kB / 0.5665 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.323e-05/0.3528, allocations: 24 kB / 0.5665 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.416e-05/0.3529, allocations: 28 kB / 0.5665 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.56e-05/0.353, allocations: 55.78 kB / 0.5666 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.3531, allocations: 151.1 kB / 0.5667 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004025/0.3535, allocations: 309.5 kB / 0.567 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3535, allocations: 0 / 0.567 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3535, allocations: 0 / 0.567 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.3535, allocations: 4 kB / 0.567 GB, free: 15.42 MB / 414.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.0009879/0.3545, allocations: 0.5245 MB / 0.5675 GB, free: 14.87 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3546, allocations: 8.031 kB / 0.5676 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.3548, allocations: 56.72 kB / 0.5676 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004113/0.3552, allocations: 210 kB / 0.5678 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.3553, allocations: 24.86 kB / 0.5678 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.271e-05/0.3553, allocations: 28.33 kB / 0.5679 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005552/0.3559, allocations: 281.4 kB / 0.5681 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.3559, allocations: 7.953 kB / 0.5681 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.356, allocations: 8 kB / 0.5681 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.356, allocations: 8 kB / 0.5681 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.3564, allocations: 195.3 kB / 0.5683 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.3582, allocations: 1.234 MB / 0.5695 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004827/0.3587, allocations: 238.4 kB / 0.5698 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.3589, allocations: 95.52 kB / 0.5699 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.3589, allocations: 4 kB / 0.5699 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.359, allocations: 38.56 kB / 0.5699 GB, free: 12.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.393e-06/0.359, allocations: 4 kB / 0.5699 GB, free: 12.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002617/0.3616, allocations: 1.204 MB / 0.5711 GB, free: 10.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.3617, allocations: 136.5 kB / 0.5712 GB, free: 10.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.362, allocations: 233 kB / 0.5714 GB, free: 10.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.362, allocations: 29.7 kB / 0.5715 GB, free: 10.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3621, allocations: 180.5 kB / 0.5716 GB, free: 10.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.3622, allocations: 126.9 kB / 0.5718 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3623, allocations: 70.14 kB / 0.5718 GB, free: 10.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3625, allocations: 338.8 kB / 0.5721 GB, free: 9.777 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.3628, allocations: 100.8 kB / 0.5722 GB, free: 9.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003545/0.3631, allocations: 237.4 kB / 0.5725 GB, free: 9.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006615/0.3638, allocations: 378.2 kB / 0.5728 GB, free: 8.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3638, allocations: 0 / 0.5728 GB, free: 8.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007524/0.3645, allocations: 396.8 kB / 0.5732 GB, free: 8.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3646, allocations: 8.406 kB / 0.5732 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.3646, allocations: 8 kB / 0.5732 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.3646, allocations: 8 kB / 0.5732 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.365, allocations: 95.81 kB / 0.5733 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.365, allocations: 11.98 kB / 0.5733 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.3652, allocations: 28.3 kB / 0.5734 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.3652, allocations: 16 kB / 0.5734 GB, free: 8.395 MB / 414.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.0001729/0.3654, allocations: 153.7 kB / 0.5735 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3655, allocations: 35.75 kB / 0.5736 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.089e-05/0.3656, allocations: 37.7 kB / 0.5736 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.3656, allocations: 8 kB / 0.5736 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3656, allocations: 0 / 0.5736 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3656, allocations: 8.219 kB / 0.5736 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.3671, allocations: 0.9417 MB / 0.5745 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.3671, allocations: 4 kB / 0.5745 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004109/0.3675, allocations: 79.88 kB / 0.5746 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.3675, allocations: 7.984 kB / 0.5746 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.328e-05/0.3676, allocations: 16 kB / 0.5746 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3676, allocations: 4 kB / 0.5746 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3676, allocations: 0 / 0.5746 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.3686, allocations: 0.7266 MB / 0.5753 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.3687, allocations: 31.8 kB / 0.5754 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.3687, allocations: 12 kB / 0.5754 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.369, allocations: 27.92 kB / 0.5754 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.685e-05/0.3691, allocations: 31.89 kB / 0.5754 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.3691, allocations: 8 kB / 0.5754 GB, free: 6.176 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001513/0.3692, allocations: 164.5 kB / 0.5756 GB, free: 6.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3692, allocations: 0 / 0.5756 GB, free: 6.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004735/0.3697, allocations: 64 kB / 0.5757 GB, free: 5.949 MB / 414.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 0.0001151/0.3698, allocations: 99.19 kB / 0.5758 GB, free: 5.844 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006791/0.3705, allocations: 275.5 kB / 0.576 GB, free: 5.574 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3705, allocations: 0.8125 kB / 0.576 GB, free: 5.574 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.3708, allocations: 123.9 kB / 0.5761 GB, free: 5.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006279/0.3714, allocations: 45.84 kB / 0.5762 GB, free: 5.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.3729, allocations: 0.888 MB / 0.5771 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004727/0.3734, allocations: 0.7681 MB / 0.5778 GB, free: 3.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.3735, allocations: 30.97 kB / 0.5778 GB, free: 3.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3736, allocations: 31.44 kB / 0.5779 GB, free: 3.617 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3736, allocations: 0 / 0.5779 GB, free: 3.617 MB / 414.1 MB Notification: Performance of Templates: time 0.007352/0.381, allocations: 2.665 MB / 0.5805 GB, free: 0.9648 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 4.983342358144]