Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001248/0.001248, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2247/0.2247, allocations: 46.11 MB / 344.2 MB, free: 11.6 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.002297/0.002297, allocations: 80.84 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1109, allocations: 62.45 MB / 480.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003217/0.1141, allocations: 1.635 MB / 481.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.1152, allocations: 0.596 MB / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.899e-05/0.1153, allocations: 0 / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001093/0.1154, allocations: 11.86 kB / 482.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.585e-05/0.1155, allocations: 15.88 kB / 482.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003346/0.1158, allocations: 91 kB / 482.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.116, allocations: 107.8 kB / 482.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.1161, allocations: 36.27 kB / 482.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.804e-05/0.1162, allocations: 47.83 kB / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.138e-05/0.1163, allocations: 39.78 kB / 482.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.1163, allocations: 8 kB / 482.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.767e-05/0.1163, allocations: 8 kB / 482.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.066e-05/0.1164, allocations: 19.92 kB / 482.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.815e-05/0.1164, allocations: 39.8 kB / 482.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001333/0.1166, allocations: 91.62 kB / 482.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1166, allocations: 4 kB / 482.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1166, allocations: 0 / 482.9 MB, free: 2.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1166, allocations: 0 / 482.9 MB, free: 2.426 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006603/0.1173, allocations: 399.2 kB / 483.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1173, allocations: 12.03 kB / 483.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.731e-05/0.1174, allocations: 38.73 kB / 483.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.1174, allocations: 12.84 kB / 483.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.1177, allocations: 214.6 kB / 483.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1177, allocations: 384 / 483.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.1177, allocations: 12.38 kB / 483.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.118, allocations: 105.7 kB / 483.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.118, allocations: 3.938 kB / 483.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.118, allocations: 4 kB / 483.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1181, allocations: 0 / 483.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.1182, allocations: 59.91 kB / 483.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007198/0.119, allocations: 388.5 kB / 484.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.1194, allocations: 98.45 kB / 484.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.1195, allocations: 36.92 kB / 484.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.1195, allocations: 0 / 484.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.1198, allocations: 103.3 kB / 484.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.1198, allocations: 0 / 484.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.00049/0.1203, allocations: 145.4 kB / 484.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.1204, allocations: 51.41 kB / 484.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.1205, allocations: 149.2 kB / 484.7 MB, free: 444 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1206, allocations: 29.7 kB / 484.8 MB, free: 408 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.322e-05/0.1206, allocations: 108 kB / 484.9 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.154e-05/0.1207, allocations: 11.81 kB / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.126e-05/0.1207, allocations: 29.7 kB / 484.9 MB, free: 248 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.1209, allocations: 326.8 kB / 485.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.121, allocations: 27.98 kB / 485.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.1212, allocations: 57.69 kB / 485.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.1214, allocations: 81.59 kB / 485.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.1214, allocations: 0 / 485.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003102/0.1218, allocations: 117.5 kB / 485.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1218, allocations: 7.938 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1218, allocations: 0 / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1218, allocations: 4 kB / 485.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.1219, allocations: 23.92 kB / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1219, allocations: 0 / 485.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.122, allocations: 24 kB / 485.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.1221, allocations: 8 kB / 485.6 MB, free: 15.55 MB / 366.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: 7 ($whenCondition1,change.u,$PRE.change.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 9.486e-05/0.1222, allocations: 116.5 kB / 485.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.114e-05/0.1222, allocations: 11.84 kB / 485.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.1222, allocations: 20.7 kB / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1222, allocations: 0 / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1223, allocations: 3.938 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1223, allocations: 4 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/0.1228, allocations: 390.4 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1229, allocations: 288 / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.993e-05/0.1229, allocations: 15.98 kB / 486.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.123, allocations: 4 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.123, allocations: 3.938 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.123, allocations: 0 / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.123, allocations: 0 / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005114/0.1235, allocations: 263.1 kB / 486.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/0.1236, allocations: 85 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.1236, allocations: 8.031 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.1238, allocations: 19.97 kB / 486.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.751e-05/0.1238, allocations: 11.98 kB / 486.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.1238, allocations: 4 kB / 486.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.314e-05/0.1239, allocations: 110.3 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1239, allocations: 4 kB / 486.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.1242, allocations: 20 kB / 486.6 MB, free: 14.38 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,change.u) * Number of discrete states: 1 (change.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.000797/0.125, allocations: 0.7714 MB / 487.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003097/0.1253, allocations: 91.86 kB / 487.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1253, allocations: 0 / 487.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.1255, allocations: 48.05 kB / 487.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.1258, allocations: 21.98 kB / 487.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.1284, allocations: 1.701 MB / 489.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.1287, allocations: 0.6971 MB / 490 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.546e-05/0.1288, allocations: 12.55 kB / 490 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/0.1288, allocations: 27.42 kB / 490 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1289, allocations: 3.938 kB / 490 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.1534, allocations: 2.574 MB / 492.6 MB, free: 8.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/7.886, allocations: 6.641 kB / 492.6 MB, free: 8.367 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_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_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1)