Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 107.2 kB / 16.4 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 192 kB / 17.34 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7458/0.7458, allocations: 122.9 MB / 414.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 69.27 kB / 0.568 GB, free: 28.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1318, allocations: 77.93 MB / 0.6441 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.002857/0.1347, allocations: 1.808 MB / 0.6458 GB, free: 7.594 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009772/0.1357, allocations: 0.5388 MB / 0.6464 GB, free: 7.051 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1359, allocations: 11.88 kB / 0.6464 GB, free: 7.039 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.136, allocations: 19.73 kB / 0.6464 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1361, allocations: 31.72 kB / 0.6464 GB, free: 6.988 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.1364, allocations: 75.86 kB / 0.6465 GB, free: 6.914 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.1367, allocations: 163.5 kB / 0.6466 GB, free: 6.754 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.1368, allocations: 53.62 kB / 0.6467 GB, free: 6.703 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1369, allocations: 59.72 kB / 0.6468 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.03e-05/0.137, allocations: 55.64 kB / 0.6468 GB, free: 6.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.798e-05/0.1371, allocations: 12 kB / 0.6468 GB, free: 6.578 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.865e-05/0.1371, allocations: 12 kB / 0.6468 GB, free: 6.566 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.592e-05/0.1371, allocations: 27.91 kB / 0.6469 GB, free: 6.539 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.577e-05/0.1372, allocations: 63.61 kB / 0.6469 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000185/0.1374, allocations: 139.5 kB / 0.6471 GB, free: 6.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1374, allocations: 0 / 0.6471 GB, free: 6.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1374, allocations: 0 / 0.6471 GB, free: 6.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1374, allocations: 0 / 0.6471 GB, free: 6.34 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007508/0.1382, allocations: 484.4 kB / 0.6475 GB, free: 5.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1382, allocations: 8.625 kB / 0.6475 GB, free: 5.812 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.052e-05/0.1383, allocations: 46.73 kB / 0.6476 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.1383, allocations: 16.84 kB / 0.6476 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.1387, allocations: 244 kB / 0.6478 GB, free: 5.465 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.1387, allocations: 12.38 kB / 0.6478 GB, free: 5.453 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.1387, allocations: 12.38 kB / 0.6478 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.139, allocations: 157.8 kB / 0.648 GB, free: 5.266 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.139, allocations: 0 / 0.648 GB, free: 5.266 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.1391, allocations: 3.984 kB / 0.648 GB, free: 5.262 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.1391, allocations: 4 kB / 0.648 GB, free: 5.258 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.1393, allocations: 75.83 kB / 0.6481 GB, free: 5.184 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008656/0.1402, allocations: 0.7317 MB / 0.6488 GB, free: 4.387 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.1403, allocations: 54.55 kB / 0.6488 GB, free: 4.324 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.1405, allocations: 32.83 kB / 0.6489 GB, free: 4.289 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.1405, allocations: 3.938 kB / 0.6489 GB, free: 4.285 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.1407, allocations: 130.7 kB / 0.649 GB, free: 4.133 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.1407, allocations: 0 / 0.649 GB, free: 4.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004629/0.1412, allocations: 161.4 kB / 0.6492 GB, free: 3.969 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.1413, allocations: 136.5 kB / 0.6493 GB, free: 3.805 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.1415, allocations: 199.2 kB / 0.6495 GB, free: 3.598 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.1415, allocations: 37.7 kB / 0.6495 GB, free: 3.555 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.1416, allocations: 124 kB / 0.6496 GB, free: 3.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.1416, allocations: 35.84 kB / 0.6497 GB, free: 3.395 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/0.1417, allocations: 45.7 kB / 0.6497 GB, free: 3.344 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1418, allocations: 334.8 kB / 0.65 GB, free: 3.008 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.142, allocations: 35.97 kB / 0.6501 GB, free: 2.973 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1422, allocations: 156.2 kB / 0.6502 GB, free: 2.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.1425, allocations: 202.3 kB / 0.6504 GB, free: 2.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1425, allocations: 4 kB / 0.6504 GB, free: 2.516 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003978/0.1429, allocations: 205.8 kB / 0.6506 GB, free: 2.309 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1429, allocations: 8 kB / 0.6506 GB, free: 2.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1429, allocations: 7.984 kB / 0.6506 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1429, allocations: 4 kB / 0.6506 GB, free: 2.289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.1431, allocations: 35.92 kB / 0.6507 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.1431, allocations: 7.938 kB / 0.6507 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.1432, allocations: 27.88 kB / 0.6507 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.1433, allocations: 8 kB / 0.6507 GB, free: 2.211 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001005/0.1434, allocations: 147.6 kB / 0.6508 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.497e-05/0.1434, allocations: 15.91 kB / 0.6508 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.807e-05/0.1435, allocations: 17.41 kB / 0.6509 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.1435, allocations: 4 kB / 0.6509 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1435, allocations: 3.984 kB / 0.6509 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1435, allocations: 4 kB / 0.6509 GB, free: 2.008 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007121/0.1442, allocations: 0.5173 MB / 0.6514 GB, free: 1.434 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1442, allocations: 0 / 0.6514 GB, free: 1.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.1443, allocations: 15.98 kB / 0.6514 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.1443, allocations: 8.031 kB / 0.6514 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1444, allocations: 3.938 kB / 0.6514 GB, free: 1.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1444, allocations: 7.875 kB / 0.6514 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1444, allocations: 4 kB / 0.6514 GB, free: 1.395 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.1449, allocations: 356.4 kB / 0.6518 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.1449, allocations: 92.95 kB / 0.6518 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.145, allocations: 4 kB / 0.6519 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.1452, allocations: 23.95 kB / 0.6519 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.1452, allocations: 11.98 kB / 0.6519 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.1452, allocations: 8 kB / 0.6519 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1453, allocations: 140.4 kB / 0.652 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1453, allocations: 4 kB / 0.652 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.1457, allocations: 24 kB / 0.6521 GB, free: 0.7031 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0007524/0.1464, allocations: 0.9045 MB / 0.6529 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003133/0.1468, allocations: 119.8 kB / 0.6531 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.1468, allocations: 0 / 0.6531 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.1469, allocations: 47.91 kB / 0.6531 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.1475, allocations: 74.08 kB / 0.6532 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.1499, allocations: 2.259 MB / 0.6554 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.1502, allocations: 0.7242 MB / 0.6561 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.541e-05/0.1503, allocations: 21.86 kB / 0.6561 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.67e-05/0.1504, allocations: 47.42 kB / 0.6561 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1504, allocations: 4 kB / 0.6562 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.172, allocations: 4.018 MB / 0.6601 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/7.847, allocations: 3.859 kB / 0.6601 GB, free: 8.348 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)