Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001837/0.001837, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001573/0.001573, allocations: 209.2 kB / 24.47 MB, free: 3.977 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.425/1.425, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2438/0.2438, allocations: 46.96 MB / 361.6 MB, free: 4.066 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+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.1.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.1.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 79.83 kB / 0.4973 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3157, allocations: 66.03 MB / 0.5618 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003843/0.3195, allocations: 2.474 MB / 0.5642 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3207, allocations: 0.705 MB / 0.5649 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.3208, allocations: 7.938 kB / 0.5649 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.321, allocations: 43.52 kB / 0.5649 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.3212, allocations: 87.2 kB / 0.565 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.3214, allocations: 99.81 kB / 0.5651 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.3218, allocations: 334.5 kB / 0.5654 GB, free: 468 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.322, allocations: 66.05 kB / 0.5655 GB, free: 392 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.3222, allocations: 135.5 kB / 0.5656 GB, free: 256 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.3223, allocations: 139.3 kB / 0.5658 GB, free: 116 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.3224, allocations: 24 kB / 0.5658 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.413e-05/0.3225, allocations: 28 kB / 0.5658 GB, free: 64 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.3225, allocations: 59.77 kB / 0.5659 GB, free: 4 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.3227, allocations: 115.4 kB / 0.566 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003682/0.323, allocations: 313 kB / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.323, allocations: 0 / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.323, allocations: 0 / 0.5663 GB, free: 15.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.323, allocations: 0 / 0.5663 GB, free: 15.59 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.0009362/0.324, allocations: 0.5362 MB / 0.5668 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.324, allocations: 8.031 kB / 0.5668 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.3243, allocations: 48.73 kB / 0.5669 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.3246, allocations: 210 kB / 0.5671 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.3247, allocations: 20.88 kB / 0.5671 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.3247, allocations: 36.31 kB / 0.5671 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.3253, allocations: 277.4 kB / 0.5674 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.3253, allocations: 11.89 kB / 0.5674 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.3253, allocations: 15.98 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.3253, allocations: 4 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.3258, allocations: 191.7 kB / 0.5676 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.3274, allocations: 1.141 MB / 0.5687 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004265/0.3278, allocations: 242.5 kB / 0.5689 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.328, allocations: 99.33 kB / 0.569 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.328, allocations: 4 kB / 0.569 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.3281, allocations: 42.5 kB / 0.5691 GB, free: 12.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.3281, allocations: 0 / 0.5691 GB, free: 12.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002603/0.3307, allocations: 1.202 MB / 0.5703 GB, free: 11.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.3308, allocations: 136.5 kB / 0.5704 GB, free: 11.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/0.331, allocations: 237 kB / 0.5706 GB, free: 10.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.331, allocations: 29.7 kB / 0.5706 GB, free: 10.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.3312, allocations: 180.5 kB / 0.5708 GB, free: 10.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.768e-05/0.3313, allocations: 111 kB / 0.5709 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.3314, allocations: 74.08 kB / 0.571 GB, free: 10.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3316, allocations: 342.8 kB / 0.5713 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.3318, allocations: 104.7 kB / 0.5714 GB, free: 9.938 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.3322, allocations: 237.7 kB / 0.5716 GB, free: 9.648 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.3328, allocations: 373.1 kB / 0.572 GB, free: 9.223 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3328, allocations: 0 / 0.572 GB, free: 9.223 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007712/0.3336, allocations: 400.8 kB / 0.5724 GB, free: 8.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3336, allocations: 8 kB / 0.5724 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.3336, allocations: 4 kB / 0.5724 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.3336, allocations: 8.406 kB / 0.5724 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.334, allocations: 103.8 kB / 0.5725 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.334, allocations: 8 kB / 0.5725 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.3343, allocations: 35.86 kB / 0.5725 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.3343, allocations: 15.98 kB / 0.5726 GB, free: 8.645 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.0001547/0.3344, allocations: 149.8 kB / 0.5727 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.3345, allocations: 31.75 kB / 0.5727 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-05/0.3346, allocations: 37.7 kB / 0.5728 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3346, allocations: 4 kB / 0.5728 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3346, allocations: 4 kB / 0.5728 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3346, allocations: 4 kB / 0.5728 GB, free: 8.406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.3361, allocations: 0.8725 MB / 0.5736 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3361, allocations: 4.094 kB / 0.5736 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.3365, allocations: 87.88 kB / 0.5737 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.944e-06/0.3365, allocations: 4 kB / 0.5737 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.3365, allocations: 8 kB / 0.5737 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3365, allocations: 0.7812 kB / 0.5737 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3365, allocations: 7.938 kB / 0.5737 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.3375, allocations: 0.7346 MB / 0.5745 GB, free: 6.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.681e-05/0.3376, allocations: 31.86 kB / 0.5745 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.3376, allocations: 8 kB / 0.5745 GB, free: 6.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.3379, allocations: 20.22 kB / 0.5745 GB, free: 6.562 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.665e-05/0.338, allocations: 31.89 kB / 0.5745 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.338, allocations: 12 kB / 0.5745 GB, free: 6.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.3382, allocations: 164.4 kB / 0.5747 GB, free: 6.355 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3382, allocations: 3.938 kB / 0.5747 GB, free: 6.352 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.3386, allocations: 72 kB / 0.5748 GB, free: 6.281 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.0001159/0.3388, allocations: 103.4 kB / 0.5749 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006326/0.3394, allocations: 276.2 kB / 0.5751 GB, free: 5.902 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3394, allocations: 0 / 0.5751 GB, free: 5.902 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.3397, allocations: 127.7 kB / 0.5753 GB, free: 5.777 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006296/0.3403, allocations: 40.62 kB / 0.5753 GB, free: 5.738 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.3418, allocations: 0.8697 MB / 0.5762 GB, free: 4.828 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.3419, allocations: 164.1 kB / 0.5763 GB, free: 4.645 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.3421, allocations: 38.89 kB / 0.5763 GB, free: 4.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.82e-05/0.3421, allocations: 27.44 kB / 0.5764 GB, free: 4.574 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3421, allocations: 0 / 0.5764 GB, free: 4.574 MB / 414.1 MB Notification: Performance of Templates: time 0.006929/0.3491, allocations: 2.813 MB / 0.5791 GB, free: 1.797 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.976539381008479]