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.0008878/0.0008878, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001133/0.001133, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9221/0.9221, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2572/0.2572, allocations: 32.8 MB / 293.5 MB, free: 1.219 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 3.938 kB / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.72e-05/1.866e-05, allocations: 4.672 kB / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00203/0.002049, allocations: 1.667 MB / 441.2 MB, free: 2.582 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007994/0.002848, allocations: 0.5609 MB / 441.8 MB, free: 2.016 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.173e-05/0.00292, allocations: 0 / 441.8 MB, free: 2.016 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.871e-05/0.003019, allocations: 15.8 kB / 441.8 MB, free: 2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.88e-05/0.003068, allocations: 15.81 kB / 441.8 MB, free: 1.984 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.003376, allocations: 79.66 kB / 441.9 MB, free: 1.906 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.003525, allocations: 115.6 kB / 442 MB, free: 1.793 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.003669, allocations: 25.28 kB / 442 MB, free: 1.77 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.003842, allocations: 71.81 kB / 442.1 MB, free: 1.699 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.003945, allocations: 31.89 kB / 442.1 MB, free: 1.668 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.003969, allocations: 12 kB / 442.2 MB, free: 1.656 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.532e-05/0.004024, allocations: 23.98 kB / 442.2 MB, free: 1.633 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.004063, allocations: 23.91 kB / 442.2 MB, free: 1.609 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.503e-05/0.004118, allocations: 35.91 kB / 442.2 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001943/0.004312, allocations: 127.5 kB / 442.4 MB, free: 1.449 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.004314, allocations: 4 kB / 442.4 MB, free: 1.445 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.004315, allocations: 0 / 442.4 MB, free: 1.445 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.00432, allocations: 4 kB / 442.4 MB, free: 1.441 MB / 410.7 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.000591/0.004911, allocations: 371.4 kB / 442.7 MB, free: 1.043 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.004953, allocations: 8.031 kB / 442.7 MB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.004993, allocations: 38.75 kB / 442.8 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.005124, allocations: 24.88 kB / 442.8 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.005322, allocations: 158.1 kB / 443 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.005336, allocations: 8.375 kB / 443 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.005362, allocations: 8.375 kB / 443 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.005539, allocations: 101.8 kB / 443.1 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.005553, allocations: 3.938 kB / 443.1 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.005568, allocations: 8 kB / 443.1 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.005574, allocations: 0 / 443.1 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.005675, allocations: 47.97 kB / 443.1 MB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004423/0.006117, allocations: 339.6 kB / 443.5 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.006219, allocations: 54.5 kB / 443.5 MB, free: 172 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.271e-05/0.006261, allocations: 28.98 kB / 443.5 MB, free: 140 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.006282, allocations: 0 / 443.5 MB, free: 140 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001464/0.006428, allocations: 103.3 kB / 443.6 MB, free: 24 kB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.002e-06/0.006429, allocations: 0 / 443.6 MB, free: 24 kB / 410.7 MB Notification: Performance of matching and sorting (n=9): time 0.196/0.2024, allocations: 130.6 kB / 443.8 MB, free: 46.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.2024, allocations: 54.22 kB / 443.8 MB, free: 46.49 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.2026, allocations: 146.6 kB / 444 MB, free: 46.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.2026, allocations: 28.52 kB / 444 MB, free: 46.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.2026, allocations: 114 kB / 444.1 MB, free: 46.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.054e-05/0.2027, allocations: 26.69 kB / 444.1 MB, free: 46.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-05/0.2027, allocations: 30.94 kB / 444.2 MB, free: 46.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.2028, allocations: 321.8 kB / 444.5 MB, free: 45.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.378e-05/0.2028, allocations: 29.61 kB / 444.5 MB, free: 45.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.139e-05/0.2029, allocations: 81.11 kB / 444.6 MB, free: 45.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.203, allocations: 124.2 kB / 444.7 MB, free: 45.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.203, allocations: 0.7188 kB / 444.7 MB, free: 45.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001523/0.2032, allocations: 149.1 kB / 444.9 MB, free: 45.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2032, allocations: 11.5 kB / 444.9 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2032, allocations: 0 / 444.9 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.2032, allocations: 2.875 kB / 444.9 MB, free: 45.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.776e-05/0.2033, allocations: 27.39 kB / 444.9 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.2033, allocations: 2.625 kB / 444.9 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.521e-05/0.2034, allocations: 15.91 kB / 444.9 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.2034, allocations: 5.781 kB / 444.9 MB, free: 45.77 MB / 410.7 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.083e-05/0.2035, allocations: 132.4 kB / 445 MB, free: 45.65 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.2035, allocations: 13.39 kB / 445.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.3e-05/0.2035, allocations: 12.62 kB / 445.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2035, allocations: 10.47 kB / 445.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.2035, allocations: 5.828 kB / 445.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2035, allocations: 0.9844 kB / 445.1 MB, free: 45.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.2036, allocations: 166.7 kB / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2036, allocations: 0 / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.269e-05/0.2037, allocations: 15.27 kB / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2037, allocations: 2.281 kB / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.2037, allocations: 3.094 kB / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2037, allocations: 2.031 kB / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2037, allocations: 0 / 445.3 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.2039, allocations: 182.5 kB / 445.5 MB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.976e-05/0.2039, allocations: 6.922 kB / 445.5 MB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.204, allocations: 2.906 kB / 445.5 MB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.175e-05/0.204, allocations: 9.859 kB / 445.5 MB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.204, allocations: 6.312 kB / 445.5 MB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.204, allocations: 2.906 kB / 445.5 MB, free: 45.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.054e-05/0.2041, allocations: 114.2 kB / 445.6 MB, free: 45.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2041, allocations: 0 / 445.6 MB, free: 45.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001561/0.2042, allocations: 23.42 kB / 445.6 MB, free: 45.32 MB / 410.7 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.0003158/0.2046, allocations: 0.7047 MB / 446.3 MB, free: 44.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.2047, allocations: 74.38 kB / 446.4 MB, free: 44.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2047, allocations: 2.75 kB / 446.4 MB, free: 44.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.947e-05/0.2048, allocations: 31.27 kB / 446.4 MB, free: 44.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/0.2049, allocations: 19.67 kB / 446.4 MB, free: 44.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.206, allocations: 1.686 MB / 448.1 MB, free: 43.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.122e-05/0.2061, allocations: 92.17 kB / 448.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.781e-05/0.2061, allocations: 12.5 kB / 448.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.168e-05/0.2062, allocations: 40.3 kB / 448.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2062, allocations: 0 / 448.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01733/0.2235, allocations: 3.2 MB / 451.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.683/6.907, allocations: 3.5 kB / 451.5 MB, free: 42.23 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins/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: 8.952431951649487]