Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.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.001308/0.001308, allocations: 103.6 kB / 21.19 MB, free: 0.6445 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.001406/0.001406, allocations: 217.1 kB / 24.49 MB, free: 3.949 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.465/1.465, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.2349/0.2349, allocations: 46.98 MB / 361.6 MB, free: 4.039 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.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 67.91 kB / 0.4973 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3144, allocations: 66.02 MB / 0.5618 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003628/0.3181, allocations: 2.189 MB / 0.5639 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.3197, allocations: 0.8618 MB / 0.5648 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.3199, allocations: 7.938 kB / 0.5648 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.32, allocations: 39.47 kB / 0.5648 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.3202, allocations: 63.39 kB / 0.5649 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.3206, allocations: 191.6 kB / 0.5651 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004434/0.3211, allocations: 390.9 kB / 0.5654 GB, free: 428 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.3213, allocations: 100.6 kB / 0.5655 GB, free: 324 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.3216, allocations: 155.4 kB / 0.5657 GB, free: 168 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.3218, allocations: 167.2 kB / 0.5658 GB, free: 0 / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.155e-05/0.3219, allocations: 36.05 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.442e-05/0.322, allocations: 44 kB / 0.5659 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.739e-05/0.3221, allocations: 91.62 kB / 0.566 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.3223, allocations: 139.2 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.3227, allocations: 416.8 kB / 0.5665 GB, free: 15.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3227, allocations: 4 kB / 0.5665 GB, free: 15.29 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3228, allocations: 0 / 0.5665 GB, free: 15.29 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3228, allocations: 0 / 0.5665 GB, free: 15.29 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001334/0.3241, allocations: 0.7306 MB / 0.5673 GB, free: 14.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3241, allocations: 12.03 kB / 0.5673 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004754/0.3246, allocations: 84.61 kB / 0.5674 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.3252, allocations: 291 kB / 0.5676 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.3252, allocations: 21.03 kB / 0.5677 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.944e-05/0.3253, allocations: 40.27 kB / 0.5677 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005742/0.3259, allocations: 282.1 kB / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.3259, allocations: 0 / 0.568 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/0.3259, allocations: 15.98 kB / 0.568 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3259, allocations: 4 kB / 0.568 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.3264, allocations: 186.5 kB / 0.5682 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.3278, allocations: 0.6721 MB / 0.5688 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/0.3282, allocations: 190.8 kB / 0.569 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.3284, allocations: 84.81 kB / 0.5691 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.3284, allocations: 4 kB / 0.5691 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004567/0.3289, allocations: 243.5 kB / 0.5693 GB, free: 12.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.3289, allocations: 0 / 0.5693 GB, free: 12.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008549/0.3297, allocations: 373.3 kB / 0.5697 GB, free: 11.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.3298, allocations: 59.41 kB / 0.5697 GB, free: 11.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.3301, allocations: 264.2 kB / 0.57 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.3301, allocations: 37.7 kB / 0.57 GB, free: 11.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.3303, allocations: 184.7 kB / 0.5702 GB, free: 11.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.963e-05/0.3304, allocations: 103.2 kB / 0.5703 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.3305, allocations: 74.06 kB / 0.5704 GB, free: 11.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3307, allocations: 342.8 kB / 0.5707 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.3309, allocations: 92.69 kB / 0.5708 GB, free: 10.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.3312, allocations: 230.5 kB / 0.571 GB, free: 10.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005964/0.3318, allocations: 340.8 kB / 0.5713 GB, free: 10.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3318, allocations: 0 / 0.5713 GB, free: 10.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000745/0.3325, allocations: 384.7 kB / 0.5717 GB, free: 9.711 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3326, allocations: 14.64 kB / 0.5717 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.3326, allocations: 4 kB / 0.5717 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.3326, allocations: 8 kB / 0.5717 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.3329, allocations: 72.38 kB / 0.5718 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.3329, allocations: 11.92 kB / 0.5718 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.3331, allocations: 39.78 kB / 0.5718 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.3332, allocations: 19.98 kB / 0.5718 GB, free: 9.547 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: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001907/0.3333, allocations: 165.8 kB / 0.572 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.276e-05/0.3334, allocations: 39.73 kB / 0.572 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007095/0.3341, allocations: 324.3 kB / 0.5724 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3341, allocations: 4 kB / 0.5724 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3341, allocations: 3.938 kB / 0.5724 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.3341, allocations: 7.984 kB / 0.5724 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009362/0.3351, allocations: 0.6071 MB / 0.573 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3351, allocations: 4 kB / 0.573 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.3353, allocations: 43.97 kB / 0.573 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3353, allocations: 8 kB / 0.573 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.3354, allocations: 11.98 kB / 0.573 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3354, allocations: 0 / 0.573 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3354, allocations: 0 / 0.573 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009186/0.3363, allocations: 0.5349 MB / 0.5735 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/0.3363, allocations: 27.75 kB / 0.5736 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.3364, allocations: 8.062 kB / 0.5736 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.3366, allocations: 11.98 kB / 0.5736 GB, free: 7.684 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.665e-05/0.3366, allocations: 27.95 kB / 0.5736 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.3367, allocations: 19.98 kB / 0.5736 GB, free: 7.637 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.3369, allocations: 187.1 kB / 0.5738 GB, free: 7.453 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3369, allocations: 4 kB / 0.5738 GB, free: 7.449 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003655/0.3372, allocations: 67.84 kB / 0.5739 GB, free: 7.383 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001293/0.3374, allocations: 112.8 kB / 0.574 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005738/0.3379, allocations: 255.6 kB / 0.5742 GB, free: 7.016 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3379, allocations: 4 kB / 0.5742 GB, free: 7.012 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.3382, allocations: 111.9 kB / 0.5743 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.3386, allocations: 45.12 kB / 0.5744 GB, free: 6.859 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3397, allocations: 0.664 MB / 0.575 GB, free: 6.164 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.3399, allocations: 193.9 kB / 0.5752 GB, free: 5.949 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.34, allocations: 31.42 kB / 0.5753 GB, free: 5.918 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.34, allocations: 0 / 0.5753 GB, free: 5.918 MB / 414.1 MB Notification: Performance of Templates: time 0.006864/0.3469, allocations: 4.042 MB / 0.5792 GB, free: 1.879 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.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: 7.867977874004282]