Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.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.001318/0.001318, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00142/0.00142, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.554/1.554, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.236/0.236, allocations: 46.96 MB / 361.7 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.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002577/0.002577, allocations: 67.91 kB / 0.4969 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.46/0.4626, allocations: 66.03 MB / 0.5613 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003188/0.4658, allocations: 1.661 MB / 0.563 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.467, allocations: 0.5542 MB / 0.5635 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.854e-05/0.467, allocations: 4 kB / 0.5635 GB, free: 2 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.4671, allocations: 15.86 kB / 0.5635 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.275e-05/0.4672, allocations: 15.8 kB / 0.5635 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003325/0.4675, allocations: 67.81 kB / 0.5636 GB, free: 1.902 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.4677, allocations: 111.7 kB / 0.5637 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.4679, allocations: 27.12 kB / 0.5637 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.4681, allocations: 63.7 kB / 0.5638 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.4682, allocations: 51.77 kB / 0.5638 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.4683, allocations: 8 kB / 0.5639 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.207e-05/0.4683, allocations: 27.98 kB / 0.5639 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.978e-05/0.4684, allocations: 23.92 kB / 0.5639 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.519e-05/0.4685, allocations: 43.73 kB / 0.5639 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.4687, allocations: 123.5 kB / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4687, allocations: 0 / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4687, allocations: 0 / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.4687, allocations: 0 / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008172/0.4695, allocations: 375.4 kB / 0.5644 GB, free: 1.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.4696, allocations: 8.031 kB / 0.5644 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.734e-05/0.4696, allocations: 8.188 kB / 0.5644 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.678e-05/0.4696, allocations: 42.73 kB / 0.5645 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.4698, allocations: 20.88 kB / 0.5645 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.4701, allocations: 157.9 kB / 0.5646 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.4701, allocations: 8.125 kB / 0.5647 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.426e-05/0.4701, allocations: 12 kB / 0.5647 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.4704, allocations: 89.64 kB / 0.5648 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4704, allocations: 0 / 0.5648 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.4704, allocations: 4 kB / 0.5648 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.4704, allocations: 4 kB / 0.5648 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.4706, allocations: 59.89 kB / 0.5648 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006168/0.4712, allocations: 335.6 kB / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001613/0.4713, allocations: 62.5 kB / 0.5652 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.324e-05/0.4714, allocations: 24.92 kB / 0.5652 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.4715, allocations: 4.031 kB / 0.5652 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002159/0.4717, allocations: 99.34 kB / 0.5653 GB, free: 4 kB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.4717, allocations: 0 / 0.5653 GB, free: 4 kB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004029/0.4721, allocations: 129.6 kB / 0.5654 GB, free: 15.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.4721, allocations: 51.41 kB / 0.5655 GB, free: 15.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.4723, allocations: 149.8 kB / 0.5656 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/0.4723, allocations: 33.7 kB / 0.5657 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.563e-05/0.4724, allocations: 108.2 kB / 0.5658 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.4724, allocations: 31.66 kB / 0.5658 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/0.4725, allocations: 37.64 kB / 0.5658 GB, free: 15.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4727, allocations: 326.8 kB / 0.5661 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.902e-05/0.4727, allocations: 27.98 kB / 0.5662 GB, free: 15.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.4729, allocations: 82.66 kB / 0.5663 GB, free: 14.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.4731, allocations: 123.6 kB / 0.5664 GB, free: 14.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4731, allocations: 0 / 0.5664 GB, free: 14.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000284/0.4734, allocations: 145.3 kB / 0.5665 GB, free: 14.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.4734, allocations: 8 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.4734, allocations: 0 / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.4734, allocations: 4 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.4735, allocations: 28.14 kB / 0.5665 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.4735, allocations: 8 kB / 0.5666 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.696e-05/0.4736, allocations: 11.95 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.4736, allocations: 8 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001362/0.4738, allocations: 134.1 kB / 0.5667 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.4738, allocations: 11.89 kB / 0.5667 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.4738, allocations: 12.72 kB / 0.5667 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4738, allocations: 0 / 0.5667 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4738, allocations: 3.938 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4738, allocations: 0 / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.474, allocations: 168.7 kB / 0.5669 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.474, allocations: 3.938 kB / 0.5669 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.4741, allocations: 11.98 kB / 0.5669 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4741, allocations: 0 / 0.5669 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.4742, allocations: 4 kB / 0.5669 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.4742, allocations: 3.984 kB / 0.5669 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4742, allocations: 0 / 0.5669 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.4746, allocations: 168.9 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.192e-05/0.4746, allocations: 12.02 kB / 0.5671 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.4746, allocations: 12.06 kB / 0.5671 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.705e-05/0.4747, allocations: 3.984 kB / 0.5671 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.4747, allocations: 7.984 kB / 0.5671 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.4747, allocations: 8 kB / 0.5671 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.002e-05/0.4748, allocations: 108.9 kB / 0.5672 GB, free: 13.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4748, allocations: 0 / 0.5672 GB, free: 13.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.4751, allocations: 27.88 kB / 0.5672 GB, free: 13.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007251/0.4758, allocations: 0.7059 MB / 0.5679 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002313/0.476, allocations: 84.03 kB / 0.568 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.476, allocations: 0 / 0.568 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.909e-05/0.4761, allocations: 27.98 kB / 0.568 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.4763, allocations: 26.58 kB / 0.5681 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.4785, allocations: 1.699 MB / 0.5697 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.4786, allocations: 93.67 kB / 0.5698 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.827e-05/0.4787, allocations: 8.484 kB / 0.5698 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.931e-05/0.4788, allocations: 39.42 kB / 0.5699 GB, free: 10.99 MB / 414.1 MB Notification: Performance of SimCode: time 4.2e-07/0.4788, allocations: 4 kB / 0.5699 GB, free: 10.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.5029, allocations: 2.709 MB / 0.5725 GB, free: 8.418 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.13, allocations: 17.92 kB / 0.5725 GB, free: 8.406 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.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: 15.412337436922826]