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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.004253/0.004253, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001103/0.001103, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 296.3 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9371/0.9371, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 103.8 kB / 0.681 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4178/0.4196, allocations: 86.97 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002597/0.4222, allocations: 1.828 MB / 0.7677 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0008266/0.4231, allocations: 0.5377 MB / 0.7682 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.492e-05/0.4232, allocations: 3.938 kB / 0.7682 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.4233, allocations: 23.73 kB / 0.7682 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.631e-05/0.4234, allocations: 27.72 kB / 0.7683 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.4236, allocations: 71.86 kB / 0.7683 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.4238, allocations: 167.5 kB / 0.7685 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.4239, allocations: 60.45 kB / 0.7686 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.042e-05/0.424, allocations: 51.72 kB / 0.7686 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.954e-05/0.424, allocations: 59.7 kB / 0.7687 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.4241, allocations: 15.88 kB / 0.7687 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.884e-05/0.4241, allocations: 12 kB / 0.7687 GB, free: 1 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.4241, allocations: 27.91 kB / 0.7687 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.027e-05/0.4242, allocations: 63.59 kB / 0.7688 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.4244, allocations: 139.3 kB / 0.7689 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.4244, allocations: 4 kB / 0.7689 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4244, allocations: 0 / 0.7689 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.4244, allocations: 0 / 0.7689 GB, free: 0.7695 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.0006243/0.425, allocations: 474.7 kB / 0.7694 GB, free: 264 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.425, allocations: 8.031 kB / 0.7694 GB, free: 256 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.018e-05/0.4251, allocations: 42.73 kB / 0.7694 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.591e-05/0.4251, allocations: 16.75 kB / 0.7694 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.4254, allocations: 239.8 kB / 0.7697 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.4254, allocations: 8.375 kB / 0.7697 GB, free: 15.9 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.4254, allocations: 12.38 kB / 0.7697 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.4257, allocations: 157.4 kB / 0.7698 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.4257, allocations: 0 / 0.7698 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.4257, allocations: 11.98 kB / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.4258, allocations: 4 kB / 0.7698 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.426, allocations: 63.89 kB / 0.7699 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007807/0.4268, allocations: 0.7509 MB / 0.7706 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.4269, allocations: 46.55 kB / 0.7707 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.427, allocations: 40.78 kB / 0.7707 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.427, allocations: 0 / 0.7707 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.4273, allocations: 122.7 kB / 0.7708 GB, free: 14.58 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.4273, allocations: 4 kB / 0.7708 GB, free: 14.58 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0004386/0.4277, allocations: 165.5 kB / 0.771 GB, free: 14.41 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.4278, allocations: 132.5 kB / 0.7711 GB, free: 14.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.4279, allocations: 199.6 kB / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.428, allocations: 33.7 kB / 0.7714 GB, free: 14.01 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.589e-05/0.4281, allocations: 135.5 kB / 0.7715 GB, free: 13.87 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.4281, allocations: 39.61 kB / 0.7715 GB, free: 13.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.4281, allocations: 45.77 kB / 0.7716 GB, free: 13.78 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.4283, allocations: 330.8 kB / 0.7719 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.4284, allocations: 35.97 kB / 0.7719 GB, free: 13.41 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.4286, allocations: 152.7 kB / 0.7721 GB, free: 13.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.4288, allocations: 198.3 kB / 0.7722 GB, free: 12.97 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4288, allocations: 4 kB / 0.7723 GB, free: 12.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003595/0.4292, allocations: 205.1 kB / 0.7724 GB, free: 12.76 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.4292, allocations: 8 kB / 0.7725 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4292, allocations: 0 / 0.7725 GB, free: 12.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.4293, allocations: 8.5 kB / 0.7725 GB, free: 12.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.4294, allocations: 39.86 kB / 0.7725 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.4294, allocations: 11.92 kB / 0.7725 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.4295, allocations: 27.83 kB / 0.7725 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.4296, allocations: 8 kB / 0.7725 GB, free: 12.66 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 9.757e-05/0.4297, allocations: 137.7 kB / 0.7727 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.704e-05/0.4297, allocations: 15.81 kB / 0.7727 GB, free: 12.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.901e-05/0.4297, allocations: 21.39 kB / 0.7727 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.4298, allocations: 8 kB / 0.7727 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4298, allocations: 0 / 0.7727 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.4298, allocations: 0 / 0.7727 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000672/0.4304, allocations: 0.5131 MB / 0.7732 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4305, allocations: 0 / 0.7732 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.4306, allocations: 19.92 kB / 0.7732 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4306, allocations: 4 kB / 0.7732 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.4306, allocations: 8 kB / 0.7733 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4306, allocations: 4.25 kB / 0.7733 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4306, allocations: 4 kB / 0.7733 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004625/0.4311, allocations: 364.3 kB / 0.7736 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.4311, allocations: 97.03 kB / 0.7737 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.4312, allocations: 8 kB / 0.7737 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4313, allocations: 11.92 kB / 0.7737 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.047e-05/0.4314, allocations: 15.98 kB / 0.7737 GB, free: 11.33 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.4314, allocations: 4 kB / 0.7737 GB, free: 11.32 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.324e-05/0.4315, allocations: 140.6 kB / 0.7739 GB, free: 11.19 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4315, allocations: 0 / 0.7739 GB, free: 11.19 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00031/0.4318, allocations: 31.98 kB / 0.7739 GB, free: 11.16 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.0006754/0.4325, allocations: 0.8966 MB / 0.7748 GB, free: 10.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002934/0.4328, allocations: 112.5 kB / 0.7749 GB, free: 10.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4328, allocations: 4.312 kB / 0.7749 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.433, allocations: 47.91 kB / 0.7749 GB, free: 10.07 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.4335, allocations: 68.61 kB / 0.775 GB, free: 10 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.4358, allocations: 2.259 MB / 0.7772 GB, free: 7.559 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.4361, allocations: 0.7164 MB / 0.7779 GB, free: 6.816 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.051e-05/0.4362, allocations: 29.66 kB / 0.7779 GB, free: 6.789 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.181e-05/0.4363, allocations: 47.42 kB / 0.778 GB, free: 6.742 MB / 0.545 GB Notification: Performance of SimCode: time 2e-07/0.4363, allocations: 0 / 0.778 GB, free: 6.742 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02174/0.458, allocations: 4.008 MB / 0.7819 GB, free: 2.875 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.2/7.658, allocations: 12.06 kB / 0.7819 GB, free: 2.863 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)