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.001672/0.001672, 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.001972/0.001972, 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.429/1.429, 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.229/0.229, 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.002228/0.002228, allocations: 81.33 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1069, allocations: 62.46 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002216/0.1091, allocations: 0.8101 MB / 481 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002023/0.1094, allocations: 51.81 kB / 481.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.345e-05/0.1094, allocations: 4 kB / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.076e-05/0.1096, allocations: 3.938 kB / 481.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.708e-05/0.1096, allocations: 7.938 kB / 481.1 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001075/0.1097, allocations: 15.98 kB / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.421e-05/0.1098, allocations: 39.86 kB / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.1099, allocations: 19.97 kB / 481.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.44e-05/0.1099, allocations: 11.94 kB / 481.2 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4e-05/0.11, allocations: 15.86 kB / 481.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.11, allocations: 4 kB / 481.2 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.137e-05/0.11, allocations: 4 kB / 481.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.643e-05/0.11, allocations: 4 kB / 481.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.463e-05/0.1101, allocations: 23.86 kB / 481.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.683e-05/0.1102, allocations: 31.89 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1102, allocations: 0 / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1102, allocations: 0 / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1102, allocations: 0 / 481.3 MB, free: 4.07 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.000464/0.1107, allocations: 351.7 kB / 481.6 MB, free: 3.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1107, allocations: 8.031 kB / 481.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.865e-05/0.1108, allocations: 38.75 kB / 481.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.1108, allocations: 4.844 kB / 481.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.111, allocations: 184.3 kB / 481.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-06/0.111, allocations: 4.375 kB / 481.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.111, allocations: 8.281 kB / 481.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.1112, allocations: 50.25 kB / 481.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.1112, allocations: 7.875 kB / 481.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.1112, allocations: 0 / 481.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1112, allocations: 0 / 481.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.278e-05/0.1112, allocations: 15.98 kB / 481.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.1118, allocations: 304.6 kB / 482.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.173e-05/0.1118, allocations: 22.58 kB / 482.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.649e-05/0.1119, allocations: 12.91 kB / 482.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.1119, allocations: 0 / 482.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/0.112, allocations: 51.34 kB / 482.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 2.725e-06/0.112, allocations: 3.984 kB / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000126/0.1121, allocations: 49.7 kB / 482.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.1122, allocations: 55.39 kB / 482.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.1123, allocations: 114.1 kB / 482.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.1123, allocations: 25.7 kB / 482.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/0.1124, allocations: 92.05 kB / 482.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.1124, allocations: 8 kB / 482.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.079e-05/0.1124, allocations: 21.64 kB / 482.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1126, allocations: 326.8 kB / 483 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.235e-05/0.1126, allocations: 7.938 kB / 483 MB, free: 2.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.327e-05/0.1127, allocations: 21.7 kB / 483 MB, free: 2.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.621e-05/0.1127, allocations: 21.72 kB / 483 MB, free: 2.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1127, allocations: 0 / 483 MB, free: 2.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001029/0.1129, allocations: 57.62 kB / 483.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.1129, allocations: 4 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1129, allocations: 4.031 kB / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.1129, allocations: 0 / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.014e-05/0.113, allocations: 4 kB / 483.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.113, allocations: 4 kB / 483.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.134e-05/0.113, allocations: 7.844 kB / 483.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-06/0.113, allocations: 0 / 483.1 MB, free: 1.969 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 8.706e-05/0.1131, allocations: 117.8 kB / 483.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.1131, allocations: 4 kB / 483.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.1132, allocations: 3.906 kB / 483.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.1132, allocations: 4 kB / 483.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.1132, allocations: 0 / 483.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1132, allocations: 11.81 kB / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000318/0.1135, allocations: 298.6 kB / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1135, allocations: 4 kB / 483.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.161e-05/0.1136, allocations: 4 kB / 483.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1136, allocations: 0 / 483.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.1136, allocations: 3.938 kB / 483.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1136, allocations: 0 / 483.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1136, allocations: 0 / 483.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.1137, allocations: 155.4 kB / 483.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.1138, allocations: 89.48 kB / 483.8 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.1138, allocations: 3.938 kB / 483.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.413e-05/0.1139, allocations: 0 / 483.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.04e-05/0.1139, allocations: 0 / 483.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-06/0.1139, allocations: 4 kB / 483.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.957e-05/0.114, allocations: 95.2 kB / 483.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.114, allocations: 4.062 kB / 483.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1142, allocations: 11.91 kB / 483.9 MB, free: 1.066 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.0004638/0.1147, allocations: 0.6812 MB / 484.6 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.268e-05/0.1148, allocations: 19.94 kB / 484.6 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1148, allocations: 0 / 484.6 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.1148, allocations: 20.05 kB / 484.6 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.1151, allocations: 6.234 kB / 484.6 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1163, allocations: 1.277 MB / 485.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.1167, allocations: 0.6885 MB / 486.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.831e-05/0.1167, allocations: 0 / 486.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.821e-05/0.1167, allocations: 23.44 kB / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1167, allocations: 0 / 486.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02461/0.1414, allocations: 1.508 MB / 488.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.012, allocations: 8.328 kB / 488.1 MB, free: 12.77 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_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_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1)