Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.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.007961/0.007961, allocations: 109 kB / 21.98 MB, free: 5.184 MB / 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.001966/0.001966, allocations: 220.6 kB / 25.29 MB, free: 3.203 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.404/1.404, allocations: 230.5 MB / 258.9 MB, free: 7.98 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.2231/0.2231, allocations: 46.93 MB / 362.3 MB, free: 4.188 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.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-beta.om_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-beta.om_ModelicaTest.Blocks.Mean") [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.00237/0.00237, allocations: 79.86 kB / 0.4982 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3073, allocations: 66.08 MB / 0.5627 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003992/0.3113, allocations: 2.334 MB / 0.565 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.313, allocations: 0.9202 MB / 0.5659 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.3131, allocations: 7.938 kB / 0.5659 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.3133, allocations: 39.47 kB / 0.5659 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.3135, allocations: 67.39 kB / 0.566 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.3139, allocations: 187.6 kB / 0.5662 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.3144, allocations: 390.9 kB / 0.5666 GB, free: 284 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.3146, allocations: 96.56 kB / 0.5667 GB, free: 184 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002763/0.3149, allocations: 155.4 kB / 0.5668 GB, free: 28 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.3152, allocations: 171.3 kB / 0.567 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.422e-05/0.3152, allocations: 36 kB / 0.567 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.3153, allocations: 48 kB / 0.567 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-05/0.3154, allocations: 95.61 kB / 0.5671 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.3156, allocations: 171.1 kB / 0.5673 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005055/0.3161, allocations: 408.9 kB / 0.5677 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3161, allocations: 0 / 0.5677 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3161, allocations: 0 / 0.5677 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.3161, allocations: 0 / 0.5677 GB, free: 15.12 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.001357/0.3175, allocations: 0.7344 MB / 0.5684 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3175, allocations: 11.97 kB / 0.5684 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004559/0.318, allocations: 80.61 kB / 0.5685 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005471/0.3185, allocations: 295.1 kB / 0.5688 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.3186, allocations: 29 kB / 0.5688 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.3186, allocations: 36.33 kB / 0.5688 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005357/0.3192, allocations: 270.1 kB / 0.5691 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3192, allocations: 3.984 kB / 0.5691 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.3192, allocations: 12 kB / 0.5691 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.3192, allocations: 15.94 kB / 0.5691 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004384/0.3197, allocations: 190.5 kB / 0.5693 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001408/0.3211, allocations: 0.7886 MB / 0.5701 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004387/0.3215, allocations: 190.8 kB / 0.5703 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.3217, allocations: 89.69 kB / 0.5703 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.835e-05/0.3217, allocations: 11.92 kB / 0.5704 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.3222, allocations: 235.1 kB / 0.5706 GB, free: 12.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.475e-06/0.3222, allocations: 3.938 kB / 0.5706 GB, free: 12.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.000848/0.323, allocations: 369.3 kB / 0.5709 GB, free: 11.64 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.3231, allocations: 55.41 kB / 0.571 GB, free: 11.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.3234, allocations: 268.2 kB / 0.5712 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.3234, allocations: 37.7 kB / 0.5713 GB, free: 11.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3235, allocations: 184.7 kB / 0.5715 GB, free: 11.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.793e-05/0.3236, allocations: 103.2 kB / 0.5716 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.3238, allocations: 70.06 kB / 0.5716 GB, free: 10.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3239, allocations: 350.8 kB / 0.572 GB, free: 10.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.3241, allocations: 84.7 kB / 0.572 GB, free: 10.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.3245, allocations: 226.5 kB / 0.5723 GB, free: 10.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005494/0.325, allocations: 348.8 kB / 0.5726 GB, free: 9.781 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.325, allocations: 0 / 0.5726 GB, free: 9.781 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006915/0.3257, allocations: 381.1 kB / 0.573 GB, free: 9.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3257, allocations: 11.94 kB / 0.573 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3257, allocations: 4 kB / 0.573 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.3258, allocations: 8 kB / 0.573 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.3261, allocations: 75.98 kB / 0.573 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.3261, allocations: 11.88 kB / 0.5731 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.3262, allocations: 35.77 kB / 0.5731 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.3263, allocations: 20 kB / 0.5731 GB, free: 9.238 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.000187/0.3265, allocations: 165.8 kB / 0.5733 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.22e-05/0.3265, allocations: 35.75 kB / 0.5733 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006776/0.3272, allocations: 320.3 kB / 0.5736 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3272, allocations: 8 kB / 0.5736 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3272, allocations: 0 / 0.5736 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3272, allocations: 144 / 0.5736 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009801/0.3282, allocations: 0.6925 MB / 0.5743 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3282, allocations: 3.984 kB / 0.5743 GB, free: 7.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.3285, allocations: 55.91 kB / 0.5744 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3285, allocations: 0 / 0.5744 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.3285, allocations: 11.98 kB / 0.5744 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3285, allocations: 4 kB / 0.5744 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3285, allocations: 4 kB / 0.5744 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008823/0.3294, allocations: 0.5271 MB / 0.5749 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.3294, allocations: 31.81 kB / 0.5749 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.3295, allocations: 8 kB / 0.5749 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.3296, allocations: 19.92 kB / 0.5749 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.3297, allocations: 23.95 kB / 0.575 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.3297, allocations: 19.98 kB / 0.575 GB, free: 7.234 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.3299, allocations: 183.1 kB / 0.5752 GB, free: 7.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3299, allocations: 0 / 0.5752 GB, free: 7.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003698/0.3303, allocations: 75.84 kB / 0.5752 GB, free: 6.98 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.0001253/0.3304, allocations: 111.2 kB / 0.5753 GB, free: 6.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005551/0.331, allocations: 255.5 kB / 0.5756 GB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.331, allocations: 0 / 0.5756 GB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.3312, allocations: 120.8 kB / 0.5757 GB, free: 6.496 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.3316, allocations: 43.16 kB / 0.5757 GB, free: 6.457 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.3327, allocations: 0.6624 MB / 0.5764 GB, free: 5.762 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004071/0.3331, allocations: 0.7958 MB / 0.5772 GB, free: 4.934 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.909e-05/0.3332, allocations: 35.44 kB / 0.5772 GB, free: 4.898 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3332, allocations: 0 / 0.5772 GB, free: 4.898 MB / 414.1 MB Notification: Performance of Templates: time 0.006383/0.3396, allocations: 3.918 MB / 0.581 GB, free: 0.9805 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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.829369709128514]