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.001684/0.001684, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002079/0.002079, allocations: 207.5 kB / 23.73 MB, free: 4.379 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.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2157/0.2157, allocations: 46.96 MB / 360.9 MB, free: 4.035 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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 71.89 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3054, allocations: 66.03 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003645/0.3091, allocations: 2.177 MB / 0.5627 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.3107, allocations: 0.8618 MB / 0.5636 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.3109, allocations: 7.938 kB / 0.5636 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.311, allocations: 39.47 kB / 0.5636 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/0.3113, allocations: 67.38 kB / 0.5637 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.3117, allocations: 191.6 kB / 0.5638 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004893/0.3122, allocations: 387 kB / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.3125, allocations: 96.58 kB / 0.5643 GB, free: 404 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002818/0.3127, allocations: 163.3 kB / 0.5645 GB, free: 240 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.313, allocations: 167.2 kB / 0.5646 GB, free: 72 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.3131, allocations: 36 kB / 0.5647 GB, free: 36 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.3132, allocations: 48.08 kB / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.257e-05/0.3133, allocations: 87.59 kB / 0.5648 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.3134, allocations: 147.2 kB / 0.5649 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004839/0.3139, allocations: 408.3 kB / 0.5653 GB, free: 15.36 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3139, allocations: 0 / 0.5653 GB, free: 15.36 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3139, allocations: 0 / 0.5653 GB, free: 15.36 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.3139, allocations: 0 / 0.5653 GB, free: 15.36 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.001281/0.3152, allocations: 0.7344 MB / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.3153, allocations: 16.03 kB / 0.5661 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.3154, allocations: 75.25 kB / 0.5661 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004318/0.3158, allocations: 76.62 kB / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.3164, allocations: 299 kB / 0.5665 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.3164, allocations: 40.91 kB / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.3165, allocations: 36.38 kB / 0.5666 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.317, allocations: 286 kB / 0.5668 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.317, allocations: 0 / 0.5668 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.317, allocations: 16 kB / 0.5668 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.317, allocations: 4 kB / 0.5668 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004235/0.3175, allocations: 198.5 kB / 0.567 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3189, allocations: 0.7573 MB / 0.5678 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004119/0.3193, allocations: 182.8 kB / 0.568 GB, free: 12.53 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.3195, allocations: 84.81 kB / 0.568 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.26e-05/0.3195, allocations: 12 kB / 0.568 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.3199, allocations: 223.7 kB / 0.5683 GB, free: 12.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/0.3199, allocations: 0 / 0.5683 GB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008177/0.3208, allocations: 377.2 kB / 0.5686 GB, free: 11.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.3208, allocations: 63.41 kB / 0.5687 GB, free: 11.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.3211, allocations: 268.2 kB / 0.5689 GB, free: 11.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.3211, allocations: 33.7 kB / 0.569 GB, free: 11.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.3213, allocations: 196.9 kB / 0.5692 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.373e-05/0.3214, allocations: 99.17 kB / 0.5692 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.3215, allocations: 70.06 kB / 0.5693 GB, free: 11.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.3217, allocations: 350.7 kB / 0.5696 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000202/0.3219, allocations: 96.7 kB / 0.5697 GB, free: 10.62 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.3222, allocations: 222.5 kB / 0.57 GB, free: 10.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000525/0.3227, allocations: 336.9 kB / 0.5703 GB, free: 9.953 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.3227, allocations: 4 kB / 0.5703 GB, free: 9.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006779/0.3234, allocations: 384.8 kB / 0.5706 GB, free: 9.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.3234, allocations: 8 kB / 0.5707 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3234, allocations: 4.469 kB / 0.5707 GB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.3234, allocations: 12.09 kB / 0.5707 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.3237, allocations: 79.77 kB / 0.5707 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.3238, allocations: 11.98 kB / 0.5708 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3239, allocations: 27.84 kB / 0.5708 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.324, allocations: 27.92 kB / 0.5708 GB, free: 9.398 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,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.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.0001922/0.3241, allocations: 161.7 kB / 0.571 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.422e-05/0.3242, allocations: 35.8 kB / 0.571 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006605/0.3249, allocations: 328.3 kB / 0.5713 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3249, allocations: 4 kB / 0.5713 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3249, allocations: 4 kB / 0.5713 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.3249, allocations: 3.984 kB / 0.5713 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009598/0.3258, allocations: 0.673 MB / 0.572 GB, free: 8.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3258, allocations: 4 kB / 0.572 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.3261, allocations: 51.89 kB / 0.572 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3261, allocations: 0 / 0.572 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.3261, allocations: 8 kB / 0.572 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3261, allocations: 7.875 kB / 0.572 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3261, allocations: 0 / 0.572 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008731/0.327, allocations: 0.5272 MB / 0.5726 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.327, allocations: 31.73 kB / 0.5726 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.783e-05/0.3271, allocations: 16.06 kB / 0.5726 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.3273, allocations: 15.92 kB / 0.5726 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.135e-05/0.3273, allocations: 27.95 kB / 0.5726 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.3274, allocations: 11.98 kB / 0.5727 GB, free: 7.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.3275, allocations: 187.1 kB / 0.5728 GB, free: 7.234 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3275, allocations: 0 / 0.5728 GB, free: 7.234 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.3279, allocations: 75.77 kB / 0.5729 GB, free: 7.16 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.001204/0.3291, allocations: 1.079 MB / 0.574 GB, free: 6.055 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005523/0.3297, allocations: 249.2 kB / 0.5742 GB, free: 5.812 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.3297, allocations: 4 kB / 0.5742 GB, free: 5.809 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.3299, allocations: 123.9 kB / 0.5743 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.3303, allocations: 53.12 kB / 0.5744 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004193/0.3345, allocations: 3.229 MB / 0.5775 GB, free: 2.203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.3347, allocations: 195.3 kB / 0.5777 GB, free: 1.988 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001471/0.3348, allocations: 42.95 kB / 0.5778 GB, free: 1.945 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.335, allocations: 123.4 kB / 0.5779 GB, free: 1.824 MB / 414.1 MB Notification: Performance of SimCode: time 6.42e-07/0.335, allocations: 0 / 0.5779 GB, free: 1.824 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.3707, allocations: 6.806 MB / 0.5845 GB, free: 11.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.03, allocations: 19.55 kB / 0.5845 GB, free: 11.16 MB / 430.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219736 ModelicaTest_4_1_0_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv","/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] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! Error: Could not read variable mean.x in file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv. Warning: Get data of variable mean.x from file ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.031533553992631]