Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00149/0.001491, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2652/0.2652, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002264/0.002264, allocations: 72.12 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1539, allocations: 62.46 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002448/0.1564, allocations: 0.8186 MB / 481 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002231/0.1566, allocations: 43.89 kB / 481.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.483e-05/0.1567, allocations: 3.938 kB / 481.1 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.1569, allocations: 3.938 kB / 481.1 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.845e-05/0.1569, allocations: 4 kB / 481.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.157, allocations: 31.89 kB / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.1572, allocations: 27.98 kB / 481.1 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.1573, allocations: 23.91 kB / 481.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.534e-05/0.1573, allocations: 11.94 kB / 481.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.626e-05/0.1574, allocations: 19.86 kB / 481.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.1574, allocations: 4 kB / 481.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.1574, allocations: 0 / 481.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.28e-05/0.1575, allocations: 8 kB / 481.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.953e-05/0.1575, allocations: 15.88 kB / 481.2 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.1576, allocations: 39.88 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1576, allocations: 0 / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1576, allocations: 0 / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1576, allocations: 0 / 481.3 MB, free: 4.074 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005208/0.1582, allocations: 351.7 kB / 481.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1582, allocations: 8.031 kB / 481.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.509e-05/0.1583, allocations: 30.75 kB / 481.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.1583, allocations: 8.844 kB / 481.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.1585, allocations: 172.4 kB / 481.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1585, allocations: 8.375 kB / 481.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.1586, allocations: 12.28 kB / 481.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001244/0.1587, allocations: 54.12 kB / 481.9 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1587, allocations: 7.875 kB / 481.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.1587, allocations: 4 kB / 481.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1587, allocations: 0 / 481.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.719e-05/0.1588, allocations: 19.97 kB / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005564/0.1594, allocations: 296.6 kB / 482.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.433e-05/0.1594, allocations: 22.64 kB / 482.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.96e-05/0.1595, allocations: 8.859 kB / 482.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.1595, allocations: 0 / 482.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/0.1596, allocations: 51.41 kB / 482.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.1596, allocations: 0 / 482.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001498/0.1598, allocations: 49.62 kB / 482.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.1598, allocations: 59.41 kB / 482.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.1599, allocations: 113.8 kB / 482.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.1599, allocations: 25.7 kB / 482.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.16, allocations: 96.03 kB / 482.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.16, allocations: 3.906 kB / 482.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.775e-05/0.1601, allocations: 17.72 kB / 482.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1602, allocations: 322.8 kB / 483 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.861e-05/0.1603, allocations: 8 kB / 483 MB, free: 2.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.848e-05/0.1603, allocations: 17.72 kB / 483 MB, free: 2.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.718e-05/0.1603, allocations: 33.92 kB / 483 MB, free: 2.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1603, allocations: 0 / 483 MB, free: 2.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.172e-05/0.1604, allocations: 49.62 kB / 483.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1605, allocations: 8 kB / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1605, allocations: 0 / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1605, allocations: 32 / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.856e-05/0.1605, allocations: 15.98 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1605, allocations: 0 / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.139e-05/0.1606, allocations: 11.84 kB / 483.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.1606, allocations: 0 / 483.1 MB, free: 1.977 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.565e-05/0.1607, allocations: 109.8 kB / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.084e-05/0.1607, allocations: 4 kB / 483.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.17e-05/0.1607, allocations: 8.281 kB / 483.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1608, allocations: 0 / 483.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1608, allocations: 3.938 kB / 483.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1608, allocations: 11.92 kB / 483.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003483/0.1611, allocations: 298.5 kB / 483.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.1612, allocations: 4 kB / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.993e-05/0.1612, allocations: 0 / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1612, allocations: 0 / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.1612, allocations: 3.938 kB / 483.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1612, allocations: 4 kB / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1612, allocations: 3.984 kB / 483.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.1614, allocations: 155.4 kB / 483.7 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.716e-05/0.1615, allocations: 85.05 kB / 483.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.1615, allocations: 3.938 kB / 483.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.878e-05/0.1615, allocations: 4.031 kB / 483.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.1616, allocations: 3.984 kB / 483.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.1616, allocations: 0 / 483.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.001e-05/0.1617, allocations: 91.28 kB / 483.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1617, allocations: 0 / 483.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002142/0.1619, allocations: 11.97 kB / 483.9 MB, free: 1.082 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0005044/0.1624, allocations: 0.6735 MB / 484.6 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.1625, allocations: 28.05 kB / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1625, allocations: 0 / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.184e-05/0.1626, allocations: 8 kB / 484.6 MB, free: 356 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.1629, allocations: 17.5 kB / 484.6 MB, free: 344 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.1643, allocations: 1.29 MB / 485.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.1647, allocations: 0.6807 MB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.914e-05/0.1647, allocations: 4 kB / 486.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.851e-05/0.1648, allocations: 15.42 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of SimCode: time 5.52e-07/0.1648, allocations: 4.281 kB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.1918, allocations: 1.514 MB / 488.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.724/7.916, allocations: 9.078 kB / 488.1 MB, free: 12.78 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1)