Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001492/0.001492, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001589/0.001589, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.546/1.546, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2356/0.2356, allocations: 44.91 MB / 358.8 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002924/0.002924, allocations: 67.91 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3813, allocations: 65.47 MB / 0.557 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00349/0.3848, allocations: 1.704 MB / 0.5587 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.3861, allocations: 0.5932 MB / 0.5593 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.911e-05/0.3862, allocations: 0 / 0.5593 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.3863, allocations: 11.86 kB / 0.5593 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.272e-05/0.3864, allocations: 27.78 kB / 0.5593 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.3868, allocations: 71.69 kB / 0.5594 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000221/0.387, allocations: 115.6 kB / 0.5595 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.3871, allocations: 31.11 kB / 0.5595 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.3873, allocations: 55.84 kB / 0.5596 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.3875, allocations: 55.69 kB / 0.5596 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.3875, allocations: 12 kB / 0.5596 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.212e-05/0.3876, allocations: 12 kB / 0.5596 GB, free: 4.969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.334e-05/0.3876, allocations: 23.92 kB / 0.5597 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.809e-05/0.3877, allocations: 55.73 kB / 0.5597 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.388, allocations: 127.5 kB / 0.5598 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.388, allocations: 0 / 0.5598 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.388, allocations: 4 kB / 0.5598 GB, free: 4.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.388, allocations: 0 / 0.5598 GB, free: 4.762 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.0008928/0.3889, allocations: 367.5 kB / 0.5602 GB, free: 4.367 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.389, allocations: 8.031 kB / 0.5602 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.812e-05/0.389, allocations: 42.73 kB / 0.5602 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.3892, allocations: 28.88 kB / 0.5603 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.3895, allocations: 156.4 kB / 0.5604 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.3895, allocations: 384 / 0.5604 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.135e-05/0.3895, allocations: 15.94 kB / 0.5604 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002244/0.3898, allocations: 93.64 kB / 0.5605 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3898, allocations: 0 / 0.5605 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.3898, allocations: 3.984 kB / 0.5605 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.3898, allocations: 0 / 0.5605 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.39, allocations: 55.91 kB / 0.5606 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007169/0.3907, allocations: 359.6 kB / 0.5609 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.3908, allocations: 62.47 kB / 0.561 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.122e-05/0.3909, allocations: 20.95 kB / 0.561 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.3909, allocations: 8.031 kB / 0.561 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.3912, allocations: 99.28 kB / 0.5611 GB, free: 3.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.3912, allocations: 3.938 kB / 0.5611 GB, free: 3.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003971/0.3916, allocations: 137.7 kB / 0.5612 GB, free: 3.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.3916, allocations: 51.41 kB / 0.5613 GB, free: 3.121 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.3918, allocations: 156.2 kB / 0.5614 GB, free: 2.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.3918, allocations: 29.7 kB / 0.5615 GB, free: 2.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.129e-05/0.3919, allocations: 108.2 kB / 0.5616 GB, free: 2.816 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.3919, allocations: 31.73 kB / 0.5616 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/0.392, allocations: 29.7 kB / 0.5616 GB, free: 2.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3922, allocations: 322.8 kB / 0.5619 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.202e-05/0.3923, allocations: 27.98 kB / 0.562 GB, free: 2.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.3924, allocations: 90.52 kB / 0.562 GB, free: 2.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.3926, allocations: 119.6 kB / 0.5622 GB, free: 2.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3926, allocations: 0 / 0.5622 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003066/0.3929, allocations: 149.5 kB / 0.5623 GB, free: 1.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.393, allocations: 8 kB / 0.5623 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.393, allocations: 0 / 0.5623 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.393, allocations: 4 kB / 0.5623 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.3931, allocations: 23.92 kB / 0.5623 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.3931, allocations: 4 kB / 0.5623 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.765e-05/0.3932, allocations: 11.95 kB / 0.5623 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.3932, allocations: 8 kB / 0.5624 GB, free: 1.93 MB / 398.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.0001428/0.3934, allocations: 141.7 kB / 0.5625 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.3934, allocations: 11.89 kB / 0.5625 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.29e-05/0.3935, allocations: 12.72 kB / 0.5625 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3935, allocations: 0 / 0.5625 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3935, allocations: 0 / 0.5625 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3935, allocations: 0 / 0.5625 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.3937, allocations: 180.7 kB / 0.5627 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3937, allocations: 0 / 0.5627 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.3938, allocations: 15.92 kB / 0.5627 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3938, allocations: 0 / 0.5627 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3938, allocations: 8 kB / 0.5627 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.3938, allocations: 3.984 kB / 0.5627 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3938, allocations: 0 / 0.5627 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.3942, allocations: 173 kB / 0.5629 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.3942, allocations: 12.02 kB / 0.5629 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.3942, allocations: 7.938 kB / 0.5629 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.851e-05/0.3943, allocations: 4 kB / 0.5629 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.3943, allocations: 11.98 kB / 0.5629 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.3944, allocations: 8 kB / 0.5629 GB, free: 1.277 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.732e-05/0.3945, allocations: 111.2 kB / 0.563 GB, free: 1.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3945, allocations: 0 / 0.563 GB, free: 1.168 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002341/0.3947, allocations: 23.94 kB / 0.563 GB, free: 1.145 MB / 398.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.0008531/0.3955, allocations: 0.7059 MB / 0.5637 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002385/0.3958, allocations: 75.84 kB / 0.5638 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3958, allocations: 0 / 0.5638 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.789e-05/0.3959, allocations: 27.98 kB / 0.5638 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.3961, allocations: 18.95 kB / 0.5639 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.3983, allocations: 1.709 MB / 0.5655 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.3989, allocations: 0.7079 MB / 0.5662 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.613e-05/0.3989, allocations: 16.34 kB / 0.5662 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.328e-05/0.399, allocations: 35.42 kB / 0.5663 GB, free: 13.66 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.399, allocations: 0 / 0.5663 GB, free: 13.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.4316, allocations: 2.615 MB / 0.5688 GB, free: 11.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.62, allocations: 10.91 kB / 0.5688 GB, free: 11.16 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.777272895909846]