Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, 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.001794/0.001794, 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.583/1.583, 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.2546/0.2546, allocations: 46.12 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.002263/0.002263, allocations: 83.47 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1456, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003417/0.1491, allocations: 1.62 MB / 481.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009371/0.15, allocations: 0.5103 MB / 482.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.215e-05/0.1501, allocations: 4 kB / 482.3 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.1503, allocations: 7.875 kB / 482.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.355e-05/0.1503, allocations: 15.8 kB / 482.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.1505, allocations: 39.89 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.1506, allocations: 75.84 kB / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1508, allocations: 28.22 kB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.923e-05/0.1508, allocations: 27.86 kB / 482.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.47e-05/0.1509, allocations: 31.84 kB / 482.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.1509, allocations: 7.984 kB / 482.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.76e-05/0.151, allocations: 8 kB / 482.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.151, allocations: 23.86 kB / 482.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.079e-05/0.1511, allocations: 35.81 kB / 482.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.1512, allocations: 71.94 kB / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1512, allocations: 0 / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1512, allocations: 0 / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1512, allocations: 0 / 482.7 MB, free: 2.609 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.0005985/0.1518, allocations: 391.2 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1519, allocations: 8.031 kB / 483.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.187e-05/0.1519, allocations: 42.73 kB / 483.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.152, allocations: 8.844 kB / 483.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.1522, allocations: 188.2 kB / 483.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1522, allocations: 16.25 kB / 483.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.1523, allocations: 4.375 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.1525, allocations: 81.78 kB / 483.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1525, allocations: 0 / 483.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.1525, allocations: 7.984 kB / 483.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.1525, allocations: 4 kB / 483.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.585e-05/0.1526, allocations: 27.98 kB / 483.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005843/0.1532, allocations: 364.4 kB / 483.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.1533, allocations: 42.62 kB / 483.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.699e-05/0.1534, allocations: 20.81 kB / 483.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.1534, allocations: 7.938 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001462/0.1535, allocations: 71.38 kB / 484 MB, free: 1.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1535, allocations: 0 / 484 MB, free: 1.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002147/0.1538, allocations: 85.53 kB / 484 MB, free: 1.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.1538, allocations: 55.39 kB / 484.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.154, allocations: 140.3 kB / 484.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.154, allocations: 29.64 kB / 484.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.476e-05/0.1541, allocations: 100 kB / 484.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.1541, allocations: 27.88 kB / 484.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/0.1542, allocations: 25.72 kB / 484.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1543, allocations: 326.8 kB / 484.7 MB, free: 360 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.126e-05/0.1544, allocations: 15.98 kB / 484.8 MB, free: 344 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.044e-05/0.1544, allocations: 34.58 kB / 484.8 MB, free: 300 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.793e-05/0.1545, allocations: 54.5 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1545, allocations: 0 / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001377/0.1546, allocations: 85.53 kB / 484.9 MB, free: 144 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.1547, allocations: 4 kB / 484.9 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1547, allocations: 3.938 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1547, allocations: 4 kB / 484.9 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.108e-05/0.1548, allocations: 8 kB / 484.9 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1548, allocations: 4 kB / 484.9 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.1548, allocations: 15.89 kB / 485 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1549, allocations: 8.062 kB / 485 MB, free: 96 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001126/0.155, allocations: 117.8 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.155, allocations: 7.906 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.155, allocations: 20.64 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1551, allocations: 4.188 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1551, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1551, allocations: 3.938 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/0.1554, allocations: 342.4 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1554, allocations: 4 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.313e-05/0.1555, allocations: 7.938 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1555, allocations: 4 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1555, allocations: 4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1555, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1555, allocations: 3.938 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.1558, allocations: 195.9 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.1558, allocations: 81.02 kB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.1559, allocations: 8.047 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.252e-05/0.1559, allocations: 4.031 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.156, allocations: 11.98 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.156, allocations: 4 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.904e-05/0.1561, allocations: 105.3 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1561, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000226/0.1563, allocations: 15.91 kB / 485.9 MB, free: 15.07 MB / 366.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005331/0.1569, allocations: 0.7357 MB / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.157, allocations: 47.92 kB / 486.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.157, allocations: 0 / 486.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.032e-05/0.1571, allocations: 23.92 kB / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.1574, allocations: 18.05 kB / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.159, allocations: 1.502 MB / 488.2 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.1593, allocations: 0.6963 MB / 488.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.666e-05/0.1593, allocations: 8.422 kB / 488.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.1594, allocations: 31.42 kB / 489 MB, free: 11.87 MB / 366.1 MB Notification: Performance of SimCode: time 2.134e-06/0.1594, allocations: 0 / 489 MB, free: 11.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.1872, allocations: 2.188 MB / 491.1 MB, free: 9.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/7.948, allocations: 11.73 kB / 491.2 MB, free: 9.746 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1)