Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006097/0.006098, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.001393/0.001393, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.29/1.29, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002114/0.002114, allocations: 295.8 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9085/0.9085, allocations: 169.3 MB / 0.4983 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00306/0.00306, allocations: 95.84 kB / 0.6815 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4234, allocations: 86.97 MB / 0.7664 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00294/0.4264, allocations: 1.831 MB / 0.7682 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.4274, allocations: 0.5416 MB / 0.7687 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.4276, allocations: 4 kB / 0.7687 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.4278, allocations: 27.66 kB / 0.7687 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.4279, allocations: 23.75 kB / 0.7688 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.4282, allocations: 63.91 kB / 0.7688 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.4285, allocations: 183.4 kB / 0.769 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.4286, allocations: 53.3 kB / 0.7691 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 9.861e-05/0.4287, allocations: 55.77 kB / 0.7691 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.241e-05/0.4288, allocations: 59.64 kB / 0.7692 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.4289, allocations: 11.94 kB / 0.7692 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.984e-05/0.4289, allocations: 16 kB / 0.7692 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.031e-05/0.4289, allocations: 27.91 kB / 0.7692 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.228e-05/0.429, allocations: 63.61 kB / 0.7693 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.4292, allocations: 131.5 kB / 0.7694 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4292, allocations: 3.938 kB / 0.7694 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4292, allocations: 0 / 0.7694 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.4293, allocations: 0 / 0.7694 GB, free: 0.8477 MB / 0.5294 GB 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.0008208/0.4301, allocations: 469.3 kB / 0.7699 GB, free: 352 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.4301, allocations: 16.03 kB / 0.7699 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.147e-05/0.4302, allocations: 16.75 kB / 0.7699 GB, free: 320 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.4306, allocations: 231.9 kB / 0.7701 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.4306, allocations: 12.36 kB / 0.7701 GB, free: 36 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/0.4306, allocations: 12.38 kB / 0.7701 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.431, allocations: 157 kB / 0.7703 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.431, allocations: 0 / 0.7703 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.431, allocations: 8 kB / 0.7703 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.495e-06/0.4311, allocations: 4 kB / 0.7703 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.4313, allocations: 71.88 kB / 0.7704 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009042/0.4322, allocations: 0.743 MB / 0.7711 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.4324, allocations: 54.48 kB / 0.7711 GB, free: 14.9 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.4325, allocations: 32.83 kB / 0.7712 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.4325, allocations: 4 kB / 0.7712 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002218/0.4327, allocations: 114.7 kB / 0.7713 GB, free: 14.72 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.4328, allocations: 4 kB / 0.7713 GB, free: 14.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004838/0.4332, allocations: 165.4 kB / 0.7714 GB, free: 14.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.4334, allocations: 136.5 kB / 0.7716 GB, free: 14.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.4336, allocations: 195.6 kB / 0.7718 GB, free: 14.19 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.4336, allocations: 41.88 kB / 0.7718 GB, free: 14.14 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/0.4337, allocations: 139.7 kB / 0.7719 GB, free: 14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.4337, allocations: 39.45 kB / 0.772 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.4338, allocations: 41.7 kB / 0.772 GB, free: 13.91 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4339, allocations: 326.8 kB / 0.7723 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.434, allocations: 35.97 kB / 0.7724 GB, free: 13.55 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.4342, allocations: 147.6 kB / 0.7725 GB, free: 13.36 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.4345, allocations: 206.3 kB / 0.7727 GB, free: 13.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4346, allocations: 8 kB / 0.7727 GB, free: 13.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003861/0.435, allocations: 201.5 kB / 0.7729 GB, free: 12.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.435, allocations: 8.062 kB / 0.7729 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.435, allocations: 4 kB / 0.7729 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.435, allocations: 8 kB / 0.7729 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.4352, allocations: 35.91 kB / 0.7729 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.4352, allocations: 4 kB / 0.7729 GB, free: 12.83 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.4353, allocations: 27.83 kB / 0.773 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.4353, allocations: 12 kB / 0.773 GB, free: 12.79 MB / 0.545 GB 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.0001135/0.4355, allocations: 140.1 kB / 0.7731 GB, free: 12.65 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.4355, allocations: 19.81 kB / 0.7731 GB, free: 12.63 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.38e-05/0.4355, allocations: 17.41 kB / 0.7732 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.4356, allocations: 4 kB / 0.7732 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4356, allocations: 0 / 0.7732 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4356, allocations: 3.984 kB / 0.7732 GB, free: 12.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007956/0.4364, allocations: 0.5131 MB / 0.7737 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4364, allocations: 7.984 kB / 0.7737 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.4365, allocations: 19.92 kB / 0.7737 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.4365, allocations: 0 / 0.7737 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.4366, allocations: 8.312 kB / 0.7737 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4366, allocations: 0 / 0.7737 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.4366, allocations: 11.94 kB / 0.7737 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005235/0.4371, allocations: 360.1 kB / 0.7741 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.849e-05/0.4372, allocations: 88.92 kB / 0.7741 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.4372, allocations: 8 kB / 0.7741 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.4374, allocations: 15.95 kB / 0.7742 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.224e-05/0.4374, allocations: 23.92 kB / 0.7742 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.4375, allocations: 4 kB / 0.7742 GB, free: 11.45 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001318/0.4376, allocations: 136.6 kB / 0.7743 GB, free: 11.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.91e-07/0.4376, allocations: 0 / 0.7743 GB, free: 11.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003317/0.4379, allocations: 28 kB / 0.7743 GB, free: 11.29 MB / 0.545 GB 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.0001353/0.4381, allocations: 107.2 kB / 0.7744 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003459/0.4384, allocations: 119.9 kB / 0.7746 GB, free: 11.06 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4385, allocations: 0 / 0.7746 GB, free: 11.06 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.4386, allocations: 47.91 kB / 0.7746 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.4392, allocations: 65.91 kB / 0.7747 GB, free: 10.96 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006847/0.4399, allocations: 340.6 kB / 0.775 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.4402, allocations: 0.7281 MB / 0.7757 GB, free: 9.832 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.394e-05/0.4403, allocations: 25.66 kB / 0.7757 GB, free: 9.809 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.712e-05/0.4404, allocations: 19.44 kB / 0.7757 GB, free: 9.789 MB / 0.545 GB Notification: Performance of SimCode: time 4.31e-07/0.4404, allocations: 0 / 0.7757 GB, free: 9.789 MB / 0.545 GB Notification: Performance of Templates: time 0.005419/0.4458, allocations: 2.037 MB / 0.7777 GB, free: 7.777 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)