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.001492/0.001492, allocations: 102.7 kB / 17.63 MB, free: 5.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.001808/0.001808, allocations: 192 kB / 18.56 MB, free: 4.434 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.412/1.412, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2188/0.2188, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 62.39 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1425, allocations: 60.82 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003123/0.1457, allocations: 1.655 MB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1468, allocations: 0.5377 MB / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.1469, allocations: 4 kB / 471.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.147, allocations: 11.86 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.904e-05/0.1471, allocations: 15.81 kB / 471.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.1475, allocations: 59.88 kB / 471.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.1477, allocations: 115.6 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.1479, allocations: 29.38 kB / 471.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.148, allocations: 47.84 kB / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.1482, allocations: 47.77 kB / 471.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.1482, allocations: 8 kB / 471.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.614e-05/0.1482, allocations: 16 kB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.525e-05/0.1483, allocations: 23.92 kB / 471.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.899e-05/0.1484, allocations: 55.7 kB / 472 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.1486, allocations: 107.9 kB / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1486, allocations: 0 / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1486, allocations: 0 / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1486, allocations: 0 / 472.1 MB, free: 11.53 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.0008319/0.1495, allocations: 411.1 kB / 472.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1495, allocations: 16.03 kB / 472.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.449e-05/0.1496, allocations: 38.73 kB / 472.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.575e-05/0.1496, allocations: 16.75 kB / 472.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.1499, allocations: 196.2 kB / 472.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.1499, allocations: 8.375 kB / 472.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.017e-05/0.1499, allocations: 12.36 kB / 472.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.1501, allocations: 100.5 kB / 472.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1502, allocations: 0 / 472.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1502, allocations: 8 kB / 472.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1502, allocations: 0 / 472.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.1503, allocations: 51.97 kB / 472.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.1509, allocations: 384.4 kB / 473.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.1511, allocations: 62.56 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.795e-05/0.1511, allocations: 24.98 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.1512, allocations: 0 / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.1514, allocations: 103.3 kB / 473.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 3.196e-06/0.1514, allocations: 3.984 kB / 473.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003694/0.1518, allocations: 137.4 kB / 473.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.1518, allocations: 59.34 kB / 473.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.152, allocations: 136.2 kB / 473.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.152, allocations: 29.7 kB / 473.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.26e-05/0.1521, allocations: 111.9 kB / 473.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.1521, allocations: 23.7 kB / 474 MB, free: 9.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.607e-05/0.1522, allocations: 37.7 kB / 474 MB, free: 9.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1524, allocations: 322.8 kB / 474.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.267e-05/0.1524, allocations: 23.97 kB / 474.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.1527, allocations: 87.59 kB / 474.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.1529, allocations: 119.6 kB / 474.5 MB, free: 8.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1529, allocations: 7.938 kB / 474.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002689/0.1532, allocations: 137.4 kB / 474.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1532, allocations: 8 kB / 474.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1532, allocations: 0 / 474.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.1532, allocations: 7.938 kB / 474.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.1534, allocations: 19.98 kB / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.1534, allocations: 7.938 kB / 474.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.1535, allocations: 20.11 kB / 474.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.1535, allocations: 8 kB / 474.8 MB, free: 8.562 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 0.0001233/0.1536, allocations: 121.8 kB / 474.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.1537, allocations: 7.906 kB / 474.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.92e-05/0.1537, allocations: 8.719 kB / 474.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1537, allocations: 7.938 kB / 474.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.1537, allocations: 7.984 kB / 474.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1537, allocations: 0 / 474.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001965/0.1539, allocations: 209.5 kB / 475.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1539, allocations: 0 / 475.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.1541, allocations: 19.94 kB / 475.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1541, allocations: 0 / 475.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.1541, allocations: 3.984 kB / 475.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.1541, allocations: 3.938 kB / 475.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1541, allocations: 0 / 475.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.1545, allocations: 177.1 kB / 475.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.1545, allocations: 85.05 kB / 475.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.1546, allocations: 0 / 475.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.549e-05/0.1546, allocations: 7.938 kB / 475.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.1547, allocations: 11.98 kB / 475.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.1547, allocations: 0 / 475.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.959e-05/0.1548, allocations: 109.6 kB / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1548, allocations: 0 / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000221/0.155, allocations: 20 kB / 475.5 MB, free: 7.684 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.0006428/0.1557, allocations: 0.7023 MB / 476.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.1559, allocations: 87.77 kB / 476.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1559, allocations: 0.5 kB / 476.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.539e-05/0.156, allocations: 43.92 kB / 476.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.1562, allocations: 15.92 kB / 476.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.158, allocations: 1.644 MB / 478 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.1583, allocations: 0.708 MB / 478.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.868e-05/0.1583, allocations: 4.562 kB / 478.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.019e-05/0.1584, allocations: 35.42 kB / 478.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1584, allocations: 0 / 478.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.1786, allocations: 2.269 MB / 481 MB, free: 2.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.367/7.546, allocations: 0 / 481 MB, free: 2.047 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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