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.001292/0.001292, allocations: 105.2 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.001415/0.001415, 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.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.226/0.226, allocations: 46.12 MB / 344.2 MB, free: 11.53 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.002235/0.002235, allocations: 76.62 kB / 417.7 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1163, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003066/0.1194, allocations: 1.62 MB / 481.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000919/0.1203, allocations: 0.5104 MB / 482.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.1204, allocations: 3.938 kB / 482.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.95e-05/0.1205, allocations: 7.875 kB / 482.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.212e-05/0.1206, allocations: 11.92 kB / 482.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.1208, allocations: 31.91 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.1209, allocations: 79.72 kB / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.1211, allocations: 36.2 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.659e-05/0.1211, allocations: 31.86 kB / 482.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.767e-05/0.1212, allocations: 27.84 kB / 482.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.1212, allocations: 8 kB / 482.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.676e-05/0.1212, allocations: 8 kB / 482.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.882e-05/0.1213, allocations: 19.92 kB / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.921e-05/0.1213, allocations: 31.81 kB / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.1215, allocations: 75.88 kB / 482.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1215, allocations: 0 / 482.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1215, allocations: 0 / 482.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.1215, allocations: 0 / 482.7 MB, free: 2.602 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.0005822/0.1221, allocations: 395.1 kB / 483.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1221, allocations: 12.03 kB / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.573e-05/0.1222, allocations: 42.73 kB / 483.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.1222, allocations: 8.844 kB / 483.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.1224, allocations: 192.2 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.1224, allocations: 8.375 kB / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.1225, allocations: 4.375 kB / 483.3 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.1226, allocations: 81.72 kB / 483.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.1226, allocations: 0 / 483.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.1227, allocations: 4 kB / 483.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.1227, allocations: 0 / 483.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.439e-05/0.1228, allocations: 39.97 kB / 483.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006853/0.1235, allocations: 356.4 kB / 483.8 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.1236, allocations: 42.58 kB / 483.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.023e-05/0.1236, allocations: 20.92 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.1237, allocations: 4 kB / 483.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.1238, allocations: 79.25 kB / 484 MB, free: 1.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1238, allocations: 0 / 484 MB, free: 1.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002121/0.1241, allocations: 85.52 kB / 484 MB, free: 1.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.1241, allocations: 59.39 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.1242, allocations: 137.8 kB / 484.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.1243, allocations: 25.7 kB / 484.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.914e-05/0.1244, allocations: 100 kB / 484.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.1244, allocations: 23.88 kB / 484.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.372e-05/0.1244, allocations: 21.72 kB / 484.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1246, allocations: 322.8 kB / 484.7 MB, free: 360 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.369e-05/0.1246, allocations: 19.98 kB / 484.7 MB, free: 340 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.311e-05/0.1247, allocations: 34.52 kB / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.447e-05/0.1248, allocations: 62.55 kB / 484.8 MB, free: 224 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.1248, allocations: 0 / 484.8 MB, free: 224 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001385/0.1249, allocations: 81.53 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.125, allocations: 8 kB / 484.9 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.125, allocations: 4.125 kB / 484.9 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.125, allocations: 0 / 484.9 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.439e-05/0.1251, allocations: 15.88 kB / 484.9 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1251, allocations: 0 / 484.9 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.099e-05/0.1252, allocations: 19.95 kB / 485 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.1252, allocations: 4 kB / 485 MB, free: 84 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.0001182/0.1253, allocations: 116 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.1253, allocations: 11.91 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.1254, allocations: 20.59 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1254, allocations: 0 / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1254, allocations: 0 / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1254, allocations: 0 / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003859/0.1258, allocations: 358.4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1258, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.722e-05/0.1258, allocations: 4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1258, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.1259, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1259, allocations: 0 / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1259, allocations: 4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/0.1261, allocations: 191.9 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.224e-05/0.1262, allocations: 93.05 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.1262, allocations: 7.984 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.203e-05/0.1263, allocations: 4 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.1264, allocations: 7.984 kB / 485.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.1264, allocations: 0 / 485.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.816e-05/0.1265, allocations: 109.5 kB / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1265, allocations: 0 / 485.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.1267, allocations: 15.91 kB / 485.9 MB, free: 15.06 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.0005743/0.1273, allocations: 0.7357 MB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.1275, allocations: 43.92 kB / 486.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1275, allocations: 0 / 486.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.189e-05/0.1275, allocations: 24 kB / 486.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.1278, allocations: 19.97 kB / 486.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.1295, allocations: 1.509 MB / 488.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1299, allocations: 0.6963 MB / 488.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.68e-05/0.1299, allocations: 12.36 kB / 488.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.13, allocations: 31.42 kB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.13, allocations: 0 / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.1583, allocations: 2.187 MB / 491.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/7.772, allocations: 9.016 kB / 491.2 MB, free: 9.734 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1)