Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001633/0.001633, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001967/0.001967, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2294/0.2295, allocations: 46.1 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 79.56 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1403, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003312/0.1436, allocations: 1.699 MB / 481.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.1448, allocations: 0.5844 MB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.659e-05/0.1449, allocations: 0 / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.145, allocations: 7.875 kB / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.755e-05/0.1451, allocations: 27.78 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.1455, allocations: 59.81 kB / 482.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.1457, allocations: 115.7 kB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1459, allocations: 29.11 kB / 482.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.146, allocations: 59.77 kB / 482.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.1462, allocations: 47.72 kB / 482.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.023e-05/0.1462, allocations: 19.94 kB / 482.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.059e-05/0.1463, allocations: 19.97 kB / 482.9 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.951e-05/0.1464, allocations: 27.92 kB / 482.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.936e-05/0.1465, allocations: 51.73 kB / 482.9 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.1467, allocations: 123.8 kB / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1467, allocations: 0 / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1467, allocations: 0 / 483.1 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1467, allocations: 4 kB / 483.1 MB, free: 2.254 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.0008928/0.1476, allocations: 419 kB / 483.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.1477, allocations: 12.02 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.792e-05/0.1478, allocations: 42.73 kB / 483.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.148, allocations: 20.83 kB / 483.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.1483, allocations: 212.6 kB / 483.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.1483, allocations: 8.375 kB / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.1484, allocations: 11.94 kB / 483.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.1486, allocations: 104.5 kB / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1487, allocations: 4 kB / 483.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.1487, allocations: 0 / 483.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.1487, allocations: 4 kB / 483.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.1488, allocations: 47.97 kB / 483.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006695/0.1495, allocations: 396.4 kB / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.1497, allocations: 58.62 kB / 484.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.055e-05/0.1498, allocations: 20.92 kB / 484.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.1498, allocations: 0 / 484.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.15, allocations: 107.3 kB / 484.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.15, allocations: 0 / 484.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003712/0.1504, allocations: 133.4 kB / 484.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.1505, allocations: 55.41 kB / 484.7 MB, free: 452 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.1506, allocations: 150.3 kB / 484.8 MB, free: 292 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.1507, allocations: 25.7 kB / 484.9 MB, free: 260 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.1507, allocations: 104 kB / 485 MB, free: 152 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.1508, allocations: 31.56 kB / 485 MB, free: 120 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/0.1508, allocations: 37.64 kB / 485 MB, free: 76 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.151, allocations: 322.8 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/0.1511, allocations: 23.98 kB / 485.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1513, allocations: 91.64 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.1515, allocations: 119.6 kB / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1515, allocations: 0 / 485.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002713/0.1518, allocations: 149.3 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1518, allocations: 4 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1518, allocations: 4 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1518, allocations: 4.219 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.1519, allocations: 23.98 kB / 485.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.152, allocations: 7.938 kB / 485.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.637e-05/0.152, allocations: 19.84 kB / 485.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.1521, allocations: 4 kB / 485.8 MB, free: 15.25 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.0001293/0.1522, allocations: 125.8 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.1522, allocations: 15.84 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.624e-05/0.1523, allocations: 12.66 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.1523, allocations: 4 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1523, allocations: 4 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1523, allocations: 0 / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.1525, allocations: 205.6 kB / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1525, allocations: 0 / 486.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.1526, allocations: 23.86 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1527, allocations: 0 / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.1527, allocations: 0 / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1527, allocations: 3.984 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1527, allocations: 0 / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003618/0.1531, allocations: 172.8 kB / 486.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.439e-05/0.1531, allocations: 88.98 kB / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.1532, allocations: 4 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.233e-05/0.1532, allocations: 4 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.059e-05/0.1533, allocations: 7.984 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1533, allocations: 4 kB / 486.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001035/0.1534, allocations: 114.9 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1534, allocations: 8 kB / 486.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.1537, allocations: 19.94 kB / 486.6 MB, free: 14.35 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.0007124/0.1544, allocations: 0.6982 MB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.1546, allocations: 83.89 kB / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.1547, allocations: 4 kB / 487.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.472e-05/0.1548, allocations: 35.92 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.155, allocations: 15.98 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.1571, allocations: 1.692 MB / 489.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.1575, allocations: 0.7002 MB / 489.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.379e-05/0.1576, allocations: 20.75 kB / 489.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.192e-05/0.1576, allocations: 39.7 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1576, allocations: 4 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.1844, allocations: 2.404 MB / 492.3 MB, free: 8.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/7.972, allocations: 3.422 kB / 492.3 MB, free: 8.523 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1)