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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008048/0.0008049, allocations: 92.33 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008922/0.0008922, allocations: 171.2 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.178/1.178, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1778/0.1778, allocations: 44.24 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002581/0.0002581, allocations: 8 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08478, allocations: 61.92 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001529/0.08634, allocations: 1.374 MB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000703/0.08706, allocations: 0.5144 MB / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.137e-05/0.08713, allocations: 3.938 kB / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.1e-05/0.08722, allocations: 3.938 kB / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.711e-05/0.08727, allocations: 15.91 kB / 474.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.08751, allocations: 55.89 kB / 474.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001301/0.08765, allocations: 103.7 kB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.08778, allocations: 25.39 kB / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.233e-05/0.08787, allocations: 43.78 kB / 474.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.573e-05/0.08797, allocations: 35.78 kB / 474.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.088, allocations: 4 kB / 474.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.503e-05/0.08802, allocations: 8 kB / 474.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.506e-05/0.08806, allocations: 19.91 kB / 474.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.08814, allocations: 65.5 kB / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.08826, allocations: 99.86 kB / 474.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.08827, allocations: 0 / 474.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.08829, allocations: 0 / 474.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.08829, allocations: 0 / 474.7 MB, free: 10.86 MB / 350.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.0005823/0.08888, allocations: 401.3 kB / 475.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.08893, allocations: 12.03 kB / 475.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.939e-05/0.08897, allocations: 34.75 kB / 475.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.08901, allocations: 12.84 kB / 475.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.0892, allocations: 214.5 kB / 475.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.08922, allocations: 8.375 kB / 475.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.08925, allocations: 8.375 kB / 475.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.08945, allocations: 97.77 kB / 475.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.08947, allocations: 7.938 kB / 475.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.08949, allocations: 4 kB / 475.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.0895, allocations: 4 kB / 475.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.08964, allocations: 51.91 kB / 475.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004879/0.09014, allocations: 384.5 kB / 475.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.09027, allocations: 62.48 kB / 476 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.787e-05/0.09035, allocations: 32.98 kB / 476 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.09037, allocations: 4 kB / 476 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.09057, allocations: 107.3 kB / 476.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.09058, allocations: 0 / 476.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000311/0.0909, allocations: 133.4 kB / 476.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.09094, allocations: 63.34 kB / 476.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.663e-05/0.09104, allocations: 137.8 kB / 476.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.09107, allocations: 29.7 kB / 476.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.09112, allocations: 108 kB / 476.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.09115, allocations: 19.72 kB / 476.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.09119, allocations: 25.7 kB / 476.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.657e-05/0.09128, allocations: 322.8 kB / 477 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.706e-05/0.09135, allocations: 27.98 kB / 477 MB, free: 8.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.31e-05/0.09145, allocations: 83.66 kB / 477.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.09168, allocations: 127.6 kB / 477.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.09169, allocations: 7.938 kB / 477.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002299/0.09193, allocations: 145.3 kB / 477.3 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.09195, allocations: 4 kB / 477.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.09196, allocations: 4 kB / 477.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.09197, allocations: 3.938 kB / 477.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.09208, allocations: 32.14 kB / 477.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.0921, allocations: 8.375 kB / 477.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.758e-05/0.09217, allocations: 11.98 kB / 477.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.09219, allocations: 8 kB / 477.4 MB, free: 7.887 MB / 350.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 7.993e-05/0.09227, allocations: 124.6 kB / 477.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.0923, allocations: 15.84 kB / 477.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.09233, allocations: 12.7 kB / 477.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.09234, allocations: 3.938 kB / 477.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.09235, allocations: 8 kB / 477.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.09236, allocations: 96 / 477.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.0925, allocations: 209.4 kB / 477.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.09251, allocations: 0 / 477.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.459e-05/0.0926, allocations: 12 kB / 477.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.09261, allocations: 4 kB / 477.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.09262, allocations: 3.984 kB / 477.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.09263, allocations: 3.938 kB / 477.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.09264, allocations: 0 / 477.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.09295, allocations: 177 kB / 478 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.09299, allocations: 81.02 kB / 478 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.09302, allocations: 4 kB / 478.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.071e-05/0.09308, allocations: 7.922 kB / 478.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.09313, allocations: 11.94 kB / 478.1 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.09314, allocations: 8.047 kB / 478.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.068e-05/0.09321, allocations: 109.3 kB / 478.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09322, allocations: 0 / 478.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000204/0.09342, allocations: 20 kB / 478.2 MB, free: 6.996 MB / 350.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.000508/0.09394, allocations: 0.7028 MB / 478.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001795/0.09413, allocations: 91.7 kB / 479 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.09414, allocations: 0 / 479 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.665e-05/0.09422, allocations: 36.47 kB / 479 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001794/0.09441, allocations: 23.92 kB / 479.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.09589, allocations: 1.684 MB / 480.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.09611, allocations: 0.7043 MB / 481.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.128e-05/0.09616, allocations: 8.562 kB / 481.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.281e-05/0.09622, allocations: 27.42 kB / 481.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09623, allocations: 0 / 481.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01164/0.1079, allocations: 2.046 MB / 483.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/0.108, allocations: 189.5 kB / 483.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.618/1.726, allocations: 0 / 483.7 MB, free: 1.336 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) 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) Reference file matches