Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001412/0.001412, allocations: 100 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 209.7 kB / 18.14 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2513/0.2513, allocations: 46.11 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 80.86 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1451, allocations: 62.44 MB / 479.4 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003655/0.1488, allocations: 1.752 MB / 481.1 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.1501, allocations: 0.5844 MB / 481.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.1503, allocations: 4 kB / 481.7 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.1505, allocations: 3.938 kB / 481.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.682e-05/0.1506, allocations: 15.86 kB / 481.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003707/0.151, allocations: 63.81 kB / 481.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.1512, allocations: 107.7 kB / 481.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.1513, allocations: 33.09 kB / 481.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002075/0.1516, allocations: 47.78 kB / 482 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.1517, allocations: 43.77 kB / 482 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.1517, allocations: 8 kB / 482 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.206e-05/0.1518, allocations: 16 kB / 482 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.808e-05/0.1519, allocations: 27.91 kB / 482.1 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.6e-05/0.152, allocations: 43.73 kB / 482.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.1522, allocations: 115.9 kB / 482.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1522, allocations: 0 / 482.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1522, allocations: 0 / 482.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1522, allocations: 0 / 482.2 MB, free: 2.797 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.000882/0.1531, allocations: 427 kB / 482.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.1532, allocations: 8.875 kB / 482.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.244e-05/0.1533, allocations: 42.75 kB / 482.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.1535, allocations: 28.81 kB / 482.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.1537, allocations: 211.8 kB / 482.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.1538, allocations: 4.375 kB / 482.9 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.1538, allocations: 15.94 kB / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.154, allocations: 96.81 kB / 483 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1541, allocations: 0 / 483 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1541, allocations: 4 kB / 483.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.1541, allocations: 4 kB / 483.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.1542, allocations: 59.89 kB / 483.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/0.1549, allocations: 384.5 kB / 483.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.155, allocations: 66.48 kB / 483.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.248e-05/0.1551, allocations: 24.98 kB / 483.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.1551, allocations: 0 / 483.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.1554, allocations: 99.28 kB / 483.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.1554, allocations: 7.938 kB / 483.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003662/0.1558, allocations: 125.5 kB / 483.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1558, allocations: 63.33 kB / 483.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.156, allocations: 145.9 kB / 484 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.156, allocations: 25.7 kB / 484 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.72e-05/0.1561, allocations: 108 kB / 484.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.1561, allocations: 31.55 kB / 484.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.551e-05/0.1562, allocations: 33.7 kB / 484.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1563, allocations: 322.8 kB / 484.5 MB, free: 292 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.344e-05/0.1564, allocations: 19.98 kB / 484.5 MB, free: 272 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001124/0.1565, allocations: 83.7 kB / 484.6 MB, free: 160 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.1567, allocations: 123.6 kB / 484.7 MB, free: 8 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1567, allocations: 4 kB / 484.7 MB, free: 4 kB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002949/0.157, allocations: 141.4 kB / 484.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.1571, allocations: 7.938 kB / 484.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1571, allocations: 4 kB / 484.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1571, allocations: 4 kB / 484.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.1572, allocations: 23.92 kB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1572, allocations: 8.219 kB / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.215e-05/0.1573, allocations: 23.83 kB / 485 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.1574, allocations: 8 kB / 485 MB, free: 15.78 MB / 366.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.0001152/0.1575, allocations: 121.8 kB / 485.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.543e-05/0.1575, allocations: 15.84 kB / 485.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.1576, allocations: 8.719 kB / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1576, allocations: 7.984 kB / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1576, allocations: 0 / 485.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1576, allocations: 4 kB / 485.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.1578, allocations: 205.5 kB / 485.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1578, allocations: 0 / 485.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.1579, allocations: 19.92 kB / 485.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1579, allocations: 0 / 485.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.1579, allocations: 480 / 485.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.158, allocations: 0 / 485.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.158, allocations: 4 kB / 485.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.1583, allocations: 176.8 kB / 485.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.057e-05/0.1584, allocations: 88.98 kB / 485.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.1584, allocations: 8 kB / 485.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.702e-05/0.1585, allocations: 3.984 kB / 485.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.1585, allocations: 4 kB / 485.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.1586, allocations: 11.92 kB / 485.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.822e-05/0.1586, allocations: 110.8 kB / 485.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1586, allocations: 0 / 485.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.1589, allocations: 23.94 kB / 485.8 MB, free: 14.89 MB / 366.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.0006035/0.1595, allocations: 0.7022 MB / 486.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002314/0.1597, allocations: 76.28 kB / 486.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.1598, allocations: 4.062 kB / 486.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.807e-05/0.1598, allocations: 39.92 kB / 486.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.1601, allocations: 12.36 kB / 486.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.1621, allocations: 1.712 MB / 488.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.1624, allocations: 0.708 MB / 489 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.596e-05/0.1624, allocations: 12.41 kB / 489 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.889e-05/0.1625, allocations: 35.42 kB / 489.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1625, allocations: 0 / 489.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01329/0.1758, allocations: 2.254 MB / 491.3 MB, free: 9.215 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.176, allocations: 187.6 kB / 491.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/1.904, allocations: 3.938 kB / 491.5 MB, free: 8.953 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches