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.001089/0.00109, allocations: 116.1 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2475/0.2475, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3593, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00286/0.3622, allocations: 1.692 MB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.3632, allocations: 0.5911 MB / 0.5327 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.407e-05/0.3633, allocations: 0 / 0.5327 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.869e-05/0.3634, allocations: 10.84 kB / 0.5327 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.964e-05/0.3635, allocations: 15.8 kB / 0.5328 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.3638, allocations: 65.12 kB / 0.5328 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.364, allocations: 116.4 kB / 0.5329 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3641, allocations: 44.16 kB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.3643, allocations: 60.39 kB / 0.533 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.3644, allocations: 48.14 kB / 0.5331 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.3644, allocations: 13.56 kB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.639e-05/0.3645, allocations: 19.12 kB / 0.5331 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.3645, allocations: 20.05 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.594e-05/0.3646, allocations: 57.47 kB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.3648, allocations: 125.4 kB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3648, allocations: 1.344 kB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.3648, allocations: 0 / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.3648, allocations: 0 / 0.5333 GB, free: 11.19 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.0007045/0.3656, allocations: 427.2 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3656, allocations: 9.562 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.3656, allocations: 37.75 kB / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.3658, allocations: 27.12 kB / 0.5338 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.3661, allocations: 223.5 kB / 0.534 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.3661, allocations: 3.562 kB / 0.534 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.3661, allocations: 15.16 kB / 0.534 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.3663, allocations: 90.83 kB / 0.5341 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.3664, allocations: 1.062 kB / 0.5341 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.3664, allocations: 1.031 kB / 0.5341 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3664, allocations: 1.5 kB / 0.5341 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.3665, allocations: 58.73 kB / 0.5342 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005561/0.3671, allocations: 383.1 kB / 0.5345 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.3673, allocations: 62.98 kB / 0.5346 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.221e-05/0.3673, allocations: 24.98 kB / 0.5346 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3674, allocations: 9.266 kB / 0.5346 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.3676, allocations: 95.97 kB / 0.5347 GB, free: 9.848 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.643e-06/0.3676, allocations: 3.938 kB / 0.5347 GB, free: 9.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003316/0.3679, allocations: 126.6 kB / 0.5348 GB, free: 9.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.368, allocations: 58.16 kB / 0.5349 GB, free: 9.703 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.3681, allocations: 149.1 kB / 0.535 GB, free: 9.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.3681, allocations: 30.8 kB / 0.5351 GB, free: 9.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.3682, allocations: 117.1 kB / 0.5352 GB, free: 9.426 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.3682, allocations: 24.03 kB / 0.5352 GB, free: 9.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.451e-05/0.3683, allocations: 35.62 kB / 0.5352 GB, free: 9.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3684, allocations: 325.2 kB / 0.5355 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.521e-05/0.3685, allocations: 23.23 kB / 0.5356 GB, free: 9.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.3686, allocations: 89.33 kB / 0.5356 GB, free: 8.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.3688, allocations: 124.7 kB / 0.5358 GB, free: 8.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3688, allocations: 1.375 kB / 0.5358 GB, free: 8.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002526/0.3691, allocations: 152.5 kB / 0.5359 GB, free: 8.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3691, allocations: 6.875 kB / 0.5359 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3691, allocations: 1.375 kB / 0.5359 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.3691, allocations: 4.125 kB / 0.5359 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.3692, allocations: 25.8 kB / 0.5359 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3693, allocations: 2.75 kB / 0.536 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.577e-05/0.3693, allocations: 12.08 kB / 0.536 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.3694, allocations: 9.484 kB / 0.536 GB, free: 8.719 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.0001054/0.3695, allocations: 134.1 kB / 0.5361 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.157e-05/0.3695, allocations: 13.39 kB / 0.5361 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.835e-05/0.3695, allocations: 10.09 kB / 0.5361 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3695, allocations: 1.375 kB / 0.5361 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.3696, allocations: 5.359 kB / 0.5361 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3696, allocations: 0 / 0.5361 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.3697, allocations: 207.6 kB / 0.5363 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3697, allocations: 0 / 0.5363 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.461e-05/0.3698, allocations: 13.56 kB / 0.5363 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3699, allocations: 3.984 kB / 0.5363 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.3699, allocations: 5.375 kB / 0.5363 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3699, allocations: 1.375 kB / 0.5363 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3699, allocations: 0 / 0.5363 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.3702, allocations: 169 kB / 0.5365 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/0.3703, allocations: 87.28 kB / 0.5366 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.3703, allocations: 6.156 kB / 0.5366 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.079e-05/0.3704, allocations: 10.39 kB / 0.5366 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.3704, allocations: 7.25 kB / 0.5366 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3704, allocations: 14.14 kB / 0.5366 GB, free: 8.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.409e-05/0.3705, allocations: 113 kB / 0.5367 GB, free: 7.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3705, allocations: 0 / 0.5367 GB, free: 7.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002307/0.3708, allocations: 20.03 kB / 0.5368 GB, free: 7.977 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.0005975/0.3714, allocations: 0.7044 MB / 0.5374 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002176/0.3716, allocations: 77.94 kB / 0.5375 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3716, allocations: 0 / 0.5375 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.357e-05/0.3717, allocations: 32.67 kB / 0.5376 GB, free: 7.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.3719, allocations: 19.03 kB / 0.5376 GB, free: 7.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.3737, allocations: 1.691 MB / 0.5392 GB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.374, allocations: 0.7107 MB / 0.5399 GB, free: 5.035 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.273e-05/0.3741, allocations: 19.19 kB / 0.5399 GB, free: 5.023 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.3742, allocations: 33.89 kB / 0.54 GB, free: 4.996 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3742, allocations: 0 / 0.54 GB, free: 4.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.3966, allocations: 2.464 MB / 0.5424 GB, free: 3.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.977, allocations: 7.188 kB / 0.5424 GB, free: 3.691 MB / 398.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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches