Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.RootMeanSquare.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01006/0.01006, allocations: 174.5 kB / 15.12 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.006/2.006, allocations: 194.5 MB / 210.3 MB, free: 8.59 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002065/0.002065, allocations: 112.7 kB / 255.6 MB, free: 11.21 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2836/0.2836, allocations: 40.01 MB / 340.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006437/0.0006438, allocations: 12.25 kB / 406.3 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1197, allocations: 54.87 MB / 461.1 MB, free: 3.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.275, allocations: 80.91 MB / 0.5293 GB, free: 2.312 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.2753, allocations: 63.97 kB / 0.5294 GB, free: 2.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007753/0.283, allocations: 1.66 MB / 0.531 GB, free: 0.582 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2831, allocations: 0 / 0.531 GB, free: 0.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.2831, allocations: 4 kB / 0.531 GB, free: 0.5781 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007168/0.2839, allocations: 395 kB / 0.5314 GB, free: 148 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.2839, allocations: 12.03 kB / 0.5314 GB, free: 136 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.38e-05/0.284, allocations: 34.56 kB / 0.5314 GB, free: 92 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.2841, allocations: 19.81 kB / 0.5315 GB, free: 72 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3329/0.617, allocations: 198.6 kB / 0.5316 GB, free: 82.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.617, allocations: 10.94 kB / 0.5317 GB, free: 82.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.838e-05/0.6171, allocations: 11.16 kB / 0.5317 GB, free: 82.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.6175, allocations: 90.92 kB / 0.5318 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.6175, allocations: 0 / 0.5318 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.6175, allocations: 8.484 kB / 0.5318 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.6176, allocations: 0 / 0.5318 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.6178, allocations: 54.56 kB / 0.5318 GB, free: 82.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.6185, allocations: 366.3 kB / 0.5322 GB, free: 82.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.6187, allocations: 64.2 kB / 0.5322 GB, free: 82.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.6188, allocations: 5.016 kB / 0.5322 GB, free: 82.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000276/0.6191, allocations: 98.03 kB / 0.5323 GB, free: 82.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.665e-06/0.6191, allocations: 3.531 kB / 0.5323 GB, free: 82.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005227/0.6196, allocations: 133.2 kB / 0.5325 GB, free: 82.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.6197, allocations: 53.94 kB / 0.5325 GB, free: 82.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.6198, allocations: 130.6 kB / 0.5326 GB, free: 82.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.6198, allocations: 33.58 kB / 0.5327 GB, free: 82.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.6199, allocations: 107 kB / 0.5328 GB, free: 81.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.6199, allocations: 24.47 kB / 0.5328 GB, free: 81.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.62, allocations: 4.781 kB / 0.5328 GB, free: 81.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.62, allocations: 321.2 kB / 0.5331 GB, free: 81.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.6202, allocations: 22.42 kB / 0.5331 GB, free: 81.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.6203, allocations: 92.47 kB / 0.5332 GB, free: 81.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.6205, allocations: 39.45 kB / 0.5332 GB, free: 81.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.6205, allocations: 0 / 0.5332 GB, free: 81.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000375/0.6209, allocations: 144 kB / 0.5334 GB, free: 81.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.6209, allocations: 9.547 kB / 0.5334 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.6209, allocations: 2.938 kB / 0.5334 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.6209, allocations: 2.469 kB / 0.5334 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.6212, allocations: 27.02 kB / 0.5334 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.6212, allocations: 6.672 kB / 0.5334 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.6213, allocations: 16.08 kB / 0.5334 GB, free: 81.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.6214, allocations: 9.594 kB / 0.5335 GB, free: 81.53 MB / 378.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 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.6215, allocations: 131.1 kB / 0.5336 GB, free: 81.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.6215, allocations: 11.94 kB / 0.5336 GB, free: 81.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.6216, allocations: 16.44 kB / 0.5336 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.6216, allocations: 0.9375 kB / 0.5336 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.6216, allocations: 1.75 kB / 0.5336 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.6216, allocations: 0 / 0.5336 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001863/0.6218, allocations: 200 kB / 0.5338 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6219, allocations: 5.641 kB / 0.5338 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.622, allocations: 19.39 kB / 0.5338 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.622, allocations: 0 / 0.5338 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.6221, allocations: 2 kB / 0.5338 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.6221, allocations: 5.141 kB / 0.5338 GB, free: 81.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6221, allocations: 3.938 kB / 0.5338 GB, free: 81.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005223/0.6226, allocations: 179.4 kB / 0.534 GB, free: 81.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.74e-05/0.6227, allocations: 84.42 kB / 0.5341 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.6227, allocations: 1.156 kB / 0.5341 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.6228, allocations: 8.781 kB / 0.5341 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.6229, allocations: 9.297 kB / 0.5341 GB, free: 81.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.6229, allocations: 3.594 kB / 0.5341 GB, free: 81.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.575e-05/0.623, allocations: 108.7 kB / 0.5342 GB, free: 80.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.623, allocations: 0 / 0.5342 GB, free: 80.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003194/0.6234, allocations: 20.53 kB / 0.5342 GB, free: 80.93 MB / 378.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,rootMeanSquare.mean.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007374/0.6241, allocations: 0.7121 MB / 0.5349 GB, free: 80.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.6245, allocations: 85 kB / 0.535 GB, free: 80.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6245, allocations: 0 / 0.535 GB, free: 80.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.6246, allocations: 37.34 kB / 0.535 GB, free: 80.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.6249, allocations: 12.84 kB / 0.5351 GB, free: 80.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.626, allocations: 1.736 MB / 0.5368 GB, free: 78.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.6262, allocations: 0.7025 MB / 0.5374 GB, free: 77.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.308e-05/0.6263, allocations: 17.86 kB / 0.5375 GB, free: 77.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.084e-05/0.6264, allocations: 29.28 kB / 0.5375 GB, free: 77.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6264, allocations: 0 / 0.5375 GB, free: 77.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02573/0.6522, allocations: 1.975 MB / 0.5394 GB, free: 77.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.6525, allocations: 167.2 kB / 0.5396 GB, free: 77.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.524/3.177, allocations: 0 / 0.5396 GB, free: 77.46 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat