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.001623/0.001623, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.00161/0.00161, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.2071/0.2071, allocations: 46.94 MB / 361.6 MB, free: 4.25 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.001886/0.001886, allocations: 71.88 kB / 0.4974 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2901, allocations: 66.03 MB / 0.5619 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00353/0.2937, allocations: 2.341 MB / 0.5642 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.2952, allocations: 0.9162 MB / 0.565 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2953, allocations: 7.938 kB / 0.5651 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.2955, allocations: 43.53 kB / 0.5651 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.2957, allocations: 63.39 kB / 0.5652 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/0.2961, allocations: 183.6 kB / 0.5653 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.2965, allocations: 390.9 kB / 0.5657 GB, free: 488 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.2967, allocations: 104.6 kB / 0.5658 GB, free: 380 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.297, allocations: 155.4 kB / 0.566 GB, free: 224 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.2972, allocations: 167.1 kB / 0.5661 GB, free: 56 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.427e-05/0.2973, allocations: 36 kB / 0.5661 GB, free: 20 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.2974, allocations: 48.05 kB / 0.5662 GB, free: 15.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.318e-05/0.2975, allocations: 91.62 kB / 0.5663 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2976, allocations: 175 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004693/0.2981, allocations: 408.9 kB / 0.5668 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2981, allocations: 0 / 0.5668 GB, free: 15.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2981, allocations: 4 kB / 0.5668 GB, free: 15.31 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2981, allocations: 4 kB / 0.5668 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.001238/0.2994, allocations: 0.7267 MB / 0.5676 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2994, allocations: 12.03 kB / 0.5676 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.2999, allocations: 84.61 kB / 0.5676 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.3004, allocations: 287 kB / 0.5679 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.3004, allocations: 25.03 kB / 0.5679 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.648e-05/0.3005, allocations: 36.33 kB / 0.568 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005133/0.301, allocations: 278.2 kB / 0.5682 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.301, allocations: 0 / 0.5682 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.301, allocations: 15.98 kB / 0.5683 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.301, allocations: 4 kB / 0.5683 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.3014, allocations: 190.5 kB / 0.5684 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.3028, allocations: 0.7963 MB / 0.5692 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000402/0.3032, allocations: 190.8 kB / 0.5694 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.3034, allocations: 96.73 kB / 0.5695 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.3034, allocations: 7.938 kB / 0.5695 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004051/0.3038, allocations: 239.6 kB / 0.5697 GB, free: 12.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.422e-06/0.3038, allocations: 0 / 0.5697 GB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007835/0.3046, allocations: 365.3 kB / 0.5701 GB, free: 11.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.3047, allocations: 63.39 kB / 0.5701 GB, free: 11.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.3049, allocations: 268.2 kB / 0.5704 GB, free: 11.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.305, allocations: 33.7 kB / 0.5704 GB, free: 11.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3051, allocations: 188.7 kB / 0.5706 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.625e-05/0.3052, allocations: 99.17 kB / 0.5707 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.3053, allocations: 74.06 kB / 0.5708 GB, free: 11.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3055, allocations: 346.8 kB / 0.5711 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.3057, allocations: 88.7 kB / 0.5712 GB, free: 10.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.3059, allocations: 222.6 kB / 0.5714 GB, free: 10.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005109/0.3065, allocations: 352.8 kB / 0.5717 GB, free: 9.973 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3065, allocations: 0 / 0.5717 GB, free: 9.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006425/0.3071, allocations: 388.8 kB / 0.5721 GB, free: 9.586 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3071, allocations: 8 kB / 0.5721 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3071, allocations: 4 kB / 0.5721 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3072, allocations: 4 kB / 0.5721 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.3074, allocations: 75.83 kB / 0.5722 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.3075, allocations: 8 kB / 0.5722 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.3076, allocations: 44.11 kB / 0.5722 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.3077, allocations: 16.09 kB / 0.5723 GB, free: 9.43 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.0001768/0.3078, allocations: 173.6 kB / 0.5724 GB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-05/0.3079, allocations: 31.75 kB / 0.5725 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006216/0.3085, allocations: 316.4 kB / 0.5728 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3085, allocations: 4 kB / 0.5728 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3085, allocations: 0 / 0.5728 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3085, allocations: 3.984 kB / 0.5728 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009294/0.3095, allocations: 0.6924 MB / 0.5734 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3095, allocations: 0 / 0.5734 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.3097, allocations: 51.89 kB / 0.5735 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3097, allocations: 8 kB / 0.5735 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.3097, allocations: 4 kB / 0.5735 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3097, allocations: 4 kB / 0.5735 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3097, allocations: 0 / 0.5735 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008528/0.3106, allocations: 0.5272 MB / 0.574 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.3106, allocations: 35.73 kB / 0.5741 GB, free: 7.504 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.3107, allocations: 12.06 kB / 0.5741 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.3108, allocations: 15.98 kB / 0.5741 GB, free: 7.477 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.3109, allocations: 24.09 kB / 0.5741 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.3109, allocations: 11.94 kB / 0.5741 GB, free: 7.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.3111, allocations: 191.1 kB / 0.5743 GB, free: 7.254 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3111, allocations: 0 / 0.5743 GB, free: 7.254 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003442/0.3114, allocations: 75.83 kB / 0.5744 GB, free: 7.18 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.0001268/0.3116, allocations: 115.2 kB / 0.5745 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005183/0.3121, allocations: 255.5 kB / 0.5747 GB, free: 6.809 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3121, allocations: 4.922 kB / 0.5747 GB, free: 6.805 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.3123, allocations: 123.8 kB / 0.5748 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.3127, allocations: 45.08 kB / 0.5749 GB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.3137, allocations: 0.6553 MB / 0.5755 GB, free: 5.953 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.3141, allocations: 0.7881 MB / 0.5763 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.526e-05/0.3142, allocations: 35.61 kB / 0.5763 GB, free: 5.102 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3142, allocations: 0 / 0.5763 GB, free: 5.102 MB / 414.1 MB Notification: Performance of Templates: time 0.006179/0.3204, allocations: 3.927 MB / 0.5802 GB, free: 1.184 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.290659687947482]