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.001337/0.001337, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001636/0.001636, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.478/1.478, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.2309/0.2309, allocations: 46.96 MB / 361.6 MB, free: 4.027 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.002106/0.002106, allocations: 67.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3146, allocations: 66.03 MB / 0.5618 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003636/0.3182, allocations: 2.178 MB / 0.5639 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.3199, allocations: 0.8657 MB / 0.5648 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.3201, allocations: 7.938 kB / 0.5648 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.3202, allocations: 43.47 kB / 0.5648 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00026/0.3205, allocations: 59.39 kB / 0.5649 GB, free: 1 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.321, allocations: 195.6 kB / 0.5651 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/0.3214, allocations: 387 kB / 0.5654 GB, free: 440 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.3216, allocations: 96.5 kB / 0.5655 GB, free: 340 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002617/0.3219, allocations: 159.4 kB / 0.5657 GB, free: 180 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.3221, allocations: 147.2 kB / 0.5658 GB, free: 32 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.545e-05/0.3222, allocations: 36.05 kB / 0.5659 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.3223, allocations: 48 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.3224, allocations: 91.62 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001604/0.3226, allocations: 135.3 kB / 0.5661 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005225/0.3231, allocations: 412.8 kB / 0.5665 GB, free: 15.33 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3231, allocations: 8 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3231, allocations: 0 / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3231, allocations: 7.875 kB / 0.5665 GB, free: 15.31 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.001362/0.3245, allocations: 0.7228 MB / 0.5672 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.3245, allocations: 12.03 kB / 0.5673 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005029/0.325, allocations: 84.61 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006048/0.3256, allocations: 291 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.3257, allocations: 21.03 kB / 0.5676 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.897e-05/0.3257, allocations: 40.33 kB / 0.5677 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005669/0.3263, allocations: 278.1 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.3263, allocations: 0 / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.3263, allocations: 15.98 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3264, allocations: 4 kB / 0.568 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.3268, allocations: 190.5 kB / 0.5681 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.3282, allocations: 0.6721 MB / 0.5688 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.3286, allocations: 186.8 kB / 0.569 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.3288, allocations: 88.81 kB / 0.5691 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.3288, allocations: 7.984 kB / 0.5691 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004998/0.3293, allocations: 239.5 kB / 0.5693 GB, free: 12.36 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.224e-06/0.3293, allocations: 0 / 0.5693 GB, free: 12.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008809/0.3302, allocations: 373.3 kB / 0.5696 GB, free: 11.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.3303, allocations: 63.39 kB / 0.5697 GB, free: 11.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.3306, allocations: 260.2 kB / 0.57 GB, free: 11.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.3306, allocations: 33.7 kB / 0.57 GB, free: 11.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.3307, allocations: 188.7 kB / 0.5702 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.235e-05/0.3308, allocations: 99.17 kB / 0.5703 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.331, allocations: 74.06 kB / 0.5703 GB, free: 11.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3311, allocations: 346.8 kB / 0.5707 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.3313, allocations: 88.7 kB / 0.5707 GB, free: 10.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.3317, allocations: 230.5 kB / 0.571 GB, free: 10.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005789/0.3322, allocations: 336.9 kB / 0.5713 GB, free: 10.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3323, allocations: 3.938 kB / 0.5713 GB, free: 10.13 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000706/0.333, allocations: 392.9 kB / 0.5717 GB, free: 9.738 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.333, allocations: 4 kB / 0.5717 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.333, allocations: 8 kB / 0.5717 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.333, allocations: 4 kB / 0.5717 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.3333, allocations: 76.36 kB / 0.5718 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.3333, allocations: 15.94 kB / 0.5718 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001829/0.3335, allocations: 31.78 kB / 0.5718 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.3335, allocations: 20.08 kB / 0.5718 GB, free: 9.582 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.0002066/0.3337, allocations: 165.7 kB / 0.572 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.3338, allocations: 35.73 kB / 0.572 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006893/0.3345, allocations: 328.3 kB / 0.5723 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.3345, allocations: 4 kB / 0.5723 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3345, allocations: 0 / 0.5723 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3345, allocations: 3.984 kB / 0.5723 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009464/0.3354, allocations: 0.6111 MB / 0.5729 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3354, allocations: 0 / 0.5729 GB, free: 8.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.3357, allocations: 47.97 kB / 0.573 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3357, allocations: 7.938 kB / 0.573 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.3357, allocations: 11.98 kB / 0.573 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3357, allocations: 0 / 0.573 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3357, allocations: 0 / 0.573 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009403/0.3367, allocations: 0.5388 MB / 0.5735 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.3367, allocations: 27.75 kB / 0.5735 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.3368, allocations: 16.05 kB / 0.5736 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.3369, allocations: 15.98 kB / 0.5736 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.337, allocations: 23.97 kB / 0.5736 GB, free: 7.684 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.337, allocations: 11.98 kB / 0.5736 GB, free: 7.672 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001984/0.3372, allocations: 191.1 kB / 0.5738 GB, free: 7.484 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3372, allocations: 0 / 0.5738 GB, free: 7.484 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.3376, allocations: 67.84 kB / 0.5739 GB, free: 7.418 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.0001401/0.3377, allocations: 115.2 kB / 0.574 GB, free: 7.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005566/0.3383, allocations: 255.6 kB / 0.5742 GB, free: 7.047 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3383, allocations: 0 / 0.5742 GB, free: 7.047 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.3386, allocations: 115.9 kB / 0.5743 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.3389, allocations: 44.61 kB / 0.5744 GB, free: 6.895 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.34, allocations: 0.6678 MB / 0.575 GB, free: 6.195 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.3402, allocations: 189.9 kB / 0.5752 GB, free: 5.984 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.3403, allocations: 39.61 kB / 0.5752 GB, free: 5.945 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3403, allocations: 0 / 0.5752 GB, free: 5.945 MB / 414.1 MB Notification: Performance of Templates: time 0.006549/0.3469, allocations: 4.039 MB / 0.5792 GB, free: 1.914 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.7573723630048335]