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.001293/0.001293, allocations: 107.6 kB / 16.41 MB, free: 6.5 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.001318/0.001318, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00215/0.00215, allocations: 291.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8783/0.8783, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 104.2 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3992, allocations: 86.99 MB / 0.7671 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00276/0.402, allocations: 1.828 MB / 0.7688 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009349/0.403, allocations: 0.5416 MB / 0.7694 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.4031, allocations: 7.938 kB / 0.7694 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.4032, allocations: 19.73 kB / 0.7694 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7e-05/0.4033, allocations: 31.72 kB / 0.7694 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001983/0.4035, allocations: 63.86 kB / 0.7695 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.4037, allocations: 179.5 kB / 0.7697 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.4038, allocations: 49.3 kB / 0.7697 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.344e-05/0.4039, allocations: 63.72 kB / 0.7698 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.485e-05/0.404, allocations: 51.7 kB / 0.7698 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.753e-05/0.404, allocations: 19.92 kB / 0.7698 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.003e-05/0.4041, allocations: 8 kB / 0.7698 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.4041, allocations: 23.92 kB / 0.7699 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.036e-05/0.4042, allocations: 63.61 kB / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.4043, allocations: 131.4 kB / 0.7701 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4043, allocations: 0 / 0.7701 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4043, allocations: 0 / 0.7701 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.4044, allocations: 0 / 0.7701 GB, free: 0.8633 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.0006087/0.405, allocations: 485.2 kB / 0.7705 GB, free: 352 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.816e-05/0.405, allocations: 11.97 kB / 0.7705 GB, free: 340 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.405, allocations: 24.75 kB / 0.7706 GB, free: 316 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.4053, allocations: 235.8 kB / 0.7708 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.4053, allocations: 4.375 kB / 0.7708 GB, free: 36 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.4054, allocations: 20.38 kB / 0.7708 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.4056, allocations: 146.2 kB / 0.7709 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.4057, allocations: 0 / 0.7709 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.4057, allocations: 4 kB / 0.7709 GB, free: 15.85 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.4057, allocations: 4 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.4059, allocations: 71.88 kB / 0.771 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007813/0.4067, allocations: 0.7431 MB / 0.7717 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.4068, allocations: 46.55 kB / 0.7718 GB, free: 14.91 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.554e-05/0.4069, allocations: 32.84 kB / 0.7718 GB, free: 14.88 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.407, allocations: 7.922 kB / 0.7718 GB, free: 14.87 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.4072, allocations: 126.7 kB / 0.7719 GB, free: 14.72 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.4072, allocations: 0 / 0.7719 GB, free: 14.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004192/0.4076, allocations: 165.3 kB / 0.7721 GB, free: 14.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.4077, allocations: 128.8 kB / 0.7722 GB, free: 14.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.4078, allocations: 211.6 kB / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.4079, allocations: 25.7 kB / 0.7725 GB, free: 14.15 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.4079, allocations: 131.6 kB / 0.7726 GB, free: 14.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.18e-05/0.408, allocations: 43.53 kB / 0.7726 GB, free: 13.97 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.408, allocations: 41.7 kB / 0.7727 GB, free: 13.93 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4082, allocations: 330.8 kB / 0.773 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.4083, allocations: 31.98 kB / 0.773 GB, free: 13.56 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.4084, allocations: 155.4 kB / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.4087, allocations: 210.3 kB / 0.7734 GB, free: 13.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4087, allocations: 0 / 0.7734 GB, free: 13.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003575/0.4091, allocations: 201.4 kB / 0.7735 GB, free: 12.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4091, allocations: 8 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4091, allocations: 4 kB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.4092, allocations: 4 kB / 0.7736 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.4093, allocations: 35.92 kB / 0.7736 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.4093, allocations: 11.92 kB / 0.7736 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.4094, allocations: 23.83 kB / 0.7736 GB, free: 12.81 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.4095, allocations: 16.19 kB / 0.7736 GB, free: 12.8 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.0001042/0.4096, allocations: 136.1 kB / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/0.4096, allocations: 15.81 kB / 0.7738 GB, free: 12.64 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.051e-05/0.4096, allocations: 25.39 kB / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.4096, allocations: 256 / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.4097, allocations: 0 / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4097, allocations: 8 kB / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006628/0.4103, allocations: 0.517 MB / 0.7743 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4103, allocations: 0 / 0.7743 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.4105, allocations: 19.98 kB / 0.7743 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.208e-05/0.4105, allocations: 4 kB / 0.7744 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.4105, allocations: 3.938 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.4105, allocations: 4 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4105, allocations: 3.938 kB / 0.7744 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004348/0.4109, allocations: 356.1 kB / 0.7747 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.411, allocations: 96.89 kB / 0.7748 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.411, allocations: 8 kB / 0.7748 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.4112, allocations: 15.98 kB / 0.7748 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.4113, allocations: 16.3 kB / 0.7748 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.4113, allocations: 4 kB / 0.7748 GB, free: 11.47 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.541e-05/0.4114, allocations: 140.6 kB / 0.775 GB, free: 11.33 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4114, allocations: 0 / 0.775 GB, free: 11.33 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003056/0.4117, allocations: 24 kB / 0.775 GB, free: 11.31 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.0001045/0.4118, allocations: 107.2 kB / 0.7751 GB, free: 11.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000284/0.4121, allocations: 123.7 kB / 0.7752 GB, free: 11.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.4121, allocations: 0 / 0.7752 GB, free: 11.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.4122, allocations: 48.91 kB / 0.7753 GB, free: 11.03 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.4128, allocations: 74.52 kB / 0.7753 GB, free: 10.96 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005184/0.4133, allocations: 370.2 kB / 0.7757 GB, free: 10.55 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.4136, allocations: 0.7281 MB / 0.7764 GB, free: 9.797 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.4136, allocations: 19.44 kB / 0.7764 GB, free: 9.777 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4136, allocations: 0 / 0.7764 GB, free: 9.777 MB / 0.545 GB Notification: Performance of Templates: time 0.003355/0.417, allocations: 2.178 MB / 0.7785 GB, free: 7.617 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)