Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_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.001322/0.001322, allocations: 95.86 kB / 15.05 MB, free: 1.113 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.001547/0.001547, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.544/2.544, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.584/4.584, allocations: 409.2 MB / 0.6838 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005643/0.0005644, allocations: 8 kB / 0.8375 GB, free: 6.559 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.327/1.328, allocations: 146.8 MB / 0.9809 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003027/1.331, allocations: 1.479 MB / 0.9823 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001281/1.332, allocations: 0.5108 MB / 0.9828 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/1.332, allocations: 7.938 kB / 0.9828 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.76e-05/1.332, allocations: 11.92 kB / 0.9828 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00017/1.333, allocations: 27.89 kB / 0.9829 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002446/1.333, allocations: 51.88 kB / 0.9829 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002863/1.333, allocations: 119.7 kB / 0.983 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/1.333, allocations: 41.83 kB / 0.9831 GB, free: 4 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/1.333, allocations: 47.77 kB / 0.9831 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/1.334, allocations: 43.72 kB / 0.9831 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/1.334, allocations: 7.938 kB / 0.9832 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 2.201e-05/1.334, allocations: 4 kB / 0.9832 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.758e-05/1.334, allocations: 23.91 kB / 0.9832 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.008e-05/1.334, allocations: 45.64 kB / 0.9832 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/1.334, allocations: 89.95 kB / 0.9833 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/1.334, allocations: 0 / 0.9833 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.15e-06/1.334, allocations: 0 / 0.9833 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.572e-06/1.334, allocations: 4 kB / 0.9833 GB, free: 3.734 MB / 0.7325 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.000975/1.335, allocations: 454.7 kB / 0.9837 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.791e-05/1.335, allocations: 8.031 kB / 0.9838 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.585e-05/1.335, allocations: 46.5 kB / 0.9838 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.964e-05/1.335, allocations: 19.81 kB / 0.9838 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/1.335, allocations: 218.7 kB / 0.984 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/1.336, allocations: 12 kB / 0.984 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/1.336, allocations: 12 kB / 0.984 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000364/1.336, allocations: 157.7 kB / 0.9842 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.336, allocations: 0 / 0.9842 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/1.336, allocations: 8 kB / 0.9842 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/1.336, allocations: 4 kB / 0.9842 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002603/1.336, allocations: 71.89 kB / 0.9843 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/1.337, allocations: 0.7549 MB / 0.985 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/1.338, allocations: 54.55 kB / 0.9851 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/1.338, allocations: 0 / 0.9851 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/1.338, allocations: 122.8 kB / 0.9852 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/1.338, allocations: 0 / 0.9852 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.000733/1.339, allocations: 185.7 kB / 0.9854 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/1.339, allocations: 140.4 kB / 0.9855 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/1.339, allocations: 203.1 kB / 0.9857 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/1.339, allocations: 25.7 kB / 0.9857 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/1.339, allocations: 128.1 kB / 0.9858 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.609e-05/1.339, allocations: 35.61 kB / 0.9859 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.591e-05/1.339, allocations: 8 kB / 0.9859 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002045/1.34, allocations: 326.8 kB / 0.9862 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/1.34, allocations: 40.34 kB / 0.9862 GB, free: 476 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/1.34, allocations: 147.2 kB / 0.9864 GB, free: 276 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002732/1.341, allocations: 71.91 kB / 0.9864 GB, free: 204 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/1.341, allocations: 0 / 0.9864 GB, free: 204 kB / 0.7325 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006759/1.341, allocations: 225 kB / 0.9867 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/1.341, allocations: 4 kB / 0.9867 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/1.341, allocations: 4 kB / 0.9867 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/1.341, allocations: 8 kB / 0.9867 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/1.342, allocations: 40.33 kB / 0.9867 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/1.342, allocations: 7.984 kB / 0.9867 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/1.342, allocations: 31.83 kB / 0.9867 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/1.342, allocations: 12 kB / 0.9868 GB, free: 15.87 MB / 0.7481 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001774/1.342, allocations: 131.7 kB / 0.9869 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/1.342, allocations: 19.77 kB / 0.9869 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.223e-05/1.342, allocations: 29.39 kB / 0.9869 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/1.342, allocations: 0 / 0.9869 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.342, allocations: 4 kB / 0.9869 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/1.342, allocations: 0 / 0.9869 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/1.343, allocations: 0.5288 MB / 0.9874 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.343, allocations: 4 kB / 0.9875 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/1.344, allocations: 15.98 kB / 0.9875 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-06/1.344, allocations: 4 kB / 0.9875 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/1.344, allocations: 4 kB / 0.9875 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/1.344, allocations: 4 kB / 0.9875 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.344, allocations: 4 kB / 0.9875 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009143/1.345, allocations: 409.3 kB / 0.9879 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/1.345, allocations: 96.89 kB / 0.988 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/1.345, allocations: 4 kB / 0.988 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/1.345, allocations: 19.98 kB / 0.988 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/1.345, allocations: 15.94 kB / 0.988 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/1.345, allocations: 12.3 kB / 0.988 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002189/1.345, allocations: 143 kB / 0.9882 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.3e-07/1.345, allocations: 0 / 0.9882 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006872/1.346, allocations: 31.91 kB / 0.9882 GB, free: 14.28 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001542/1.348, allocations: 1.151 MB / 0.9893 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005638/1.348, allocations: 119.8 kB / 0.9894 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/1.348, allocations: 0 / 0.9894 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002648/1.349, allocations: 61.03 kB / 0.9895 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008673/1.349, allocations: 60.39 kB / 0.9895 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004502/1.354, allocations: 3.502 MB / 0.993 GB, free: 9.203 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/1.355, allocations: 0.7361 MB / 0.9937 GB, free: 8.441 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001613/1.355, allocations: 17.55 kB / 0.9937 GB, free: 8.426 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/1.355, allocations: 51.42 kB / 0.9937 GB, free: 8.375 MB / 0.7481 GB Notification: Performance of SimCode: time 1.623e-06/1.355, allocations: 0 / 0.9937 GB, free: 8.375 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/1.386, allocations: 3.543 MB / 0.9972 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003491/1.387, allocations: 188.8 kB / 0.9974 GB, free: 4.754 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/4.233, allocations: 0 / 0.9974 GB, free: 4.754 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat does not exist to compare? outputFormat=mat