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.001014/0.001014, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001394/0.001395, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.533/2.533, allocations: 409.4 MB / 0.684 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 19.98 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7759/0.7762, allocations: 146.8 MB / 0.9811 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00219/0.7785, allocations: 1.486 MB / 0.9826 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.7795, allocations: 0.5069 MB / 0.9831 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.7797, allocations: 7.938 kB / 0.9831 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.7799, allocations: 15.86 kB / 0.9831 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.767e-05/0.78, allocations: 23.78 kB / 0.9831 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.7802, allocations: 47.94 kB / 0.9832 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.7805, allocations: 155.5 kB / 0.9833 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.7807, allocations: 37.83 kB / 0.9834 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.7808, allocations: 43.78 kB / 0.9834 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.235e-05/0.7809, allocations: 47.72 kB / 0.9834 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.7809, allocations: 4 kB / 0.9834 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 2.763e-05/0.7809, allocations: 4 kB / 0.9835 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.13e-05/0.781, allocations: 27.84 kB / 0.9835 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.161e-05/0.781, allocations: 41.64 kB / 0.9835 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.7812, allocations: 94.02 kB / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.7812, allocations: 0 / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.974e-06/0.7812, allocations: 0 / 0.9836 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.061e-05/0.7812, allocations: 0 / 0.9836 GB, free: 3.715 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.0007393/0.782, allocations: 462.5 kB / 0.984 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.782, allocations: 12.03 kB / 0.9841 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.403e-05/0.7821, allocations: 38.55 kB / 0.9841 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.427e-05/0.7822, allocations: 19.81 kB / 0.9841 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.7824, allocations: 222.7 kB / 0.9843 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.7825, allocations: 8 kB / 0.9843 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.7825, allocations: 15.98 kB / 0.9844 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.7828, allocations: 159.1 kB / 0.9845 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.7829, allocations: 4 kB / 0.9845 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.7829, allocations: 8 kB / 0.9845 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.7829, allocations: 0 / 0.9845 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002327/0.7831, allocations: 79.88 kB / 0.9846 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.7842, allocations: 0.7433 MB / 0.9853 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.7843, allocations: 58.53 kB / 0.9854 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.7845, allocations: 44.77 kB / 0.9854 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.7845, allocations: 7.922 kB / 0.9854 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002769/0.7848, allocations: 126.9 kB / 0.9855 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.7848, allocations: 0 / 0.9855 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0005137/0.7853, allocations: 181.5 kB / 0.9857 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.448e-05/0.7854, allocations: 128.5 kB / 0.9858 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.7856, allocations: 195.2 kB / 0.986 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.7856, allocations: 41.69 kB / 0.9861 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/0.7857, allocations: 119.9 kB / 0.9862 GB, free: 0.8047 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.7858, allocations: 35.55 kB / 0.9862 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-06/0.7858, allocations: 0 / 0.9862 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.7859, allocations: 326.8 kB / 0.9865 GB, free: 452 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.786, allocations: 44.34 kB / 0.9866 GB, free: 408 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.7862, allocations: 163.8 kB / 0.9867 GB, free: 192 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.7864, allocations: 59.92 kB / 0.9868 GB, free: 132 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.7864, allocations: 3.953 kB / 0.9868 GB, free: 128 kB / 0.7325 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004202/0.7868, allocations: 217.1 kB / 0.987 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.7869, allocations: 4.5 kB / 0.987 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.7869, allocations: 4 kB / 0.987 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.7869, allocations: 12 kB / 0.987 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.787, allocations: 31.92 kB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.787, allocations: 7.938 kB / 0.987 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.7872, allocations: 35.83 kB / 0.9871 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.7872, allocations: 11.98 kB / 0.9871 GB, free: 15.8 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.0001388/0.7874, allocations: 139.7 kB / 0.9872 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.7874, allocations: 19.77 kB / 0.9872 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.017e-05/0.7875, allocations: 25.39 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.7875, allocations: 0 / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.7875, allocations: 4 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.7875, allocations: 0 / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008314/0.7883, allocations: 0.5252 MB / 0.9878 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.7883, allocations: 8.062 kB / 0.9878 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.7885, allocations: 19.92 kB / 0.9878 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.7885, allocations: 8 kB / 0.9878 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.7885, allocations: 4 kB / 0.9878 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.7885, allocations: 4 kB / 0.9878 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7885, allocations: 0 / 0.9878 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005161/0.789, allocations: 377.1 kB / 0.9882 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.03e-05/0.7891, allocations: 92.91 kB / 0.9883 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.479e-05/0.7892, allocations: 11.98 kB / 0.9883 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.7894, allocations: 15.98 kB / 0.9883 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.7894, allocations: 11.98 kB / 0.9883 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.7894, allocations: 11.94 kB / 0.9883 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001259/0.7896, allocations: 139 kB / 0.9885 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7896, allocations: 0 / 0.9885 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003688/0.79, allocations: 31.91 kB / 0.9885 GB, free: 14.27 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.0008863/0.7909, allocations: 0.9126 MB / 0.9894 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003293/0.7912, allocations: 128.2 kB / 0.9895 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7912, allocations: 0 / 0.9895 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.7914, allocations: 55.98 kB / 0.9896 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000589/0.792, allocations: 54.39 kB / 0.9896 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.794, allocations: 1.126 MB / 0.9907 GB, free: 11.84 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.7944, allocations: 0.7167 MB / 0.9914 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001068/0.7945, allocations: 25.67 kB / 0.9914 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.036e-05/0.7946, allocations: 51.41 kB / 0.9915 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/0.7946, allocations: 0 / 0.9915 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01692/0.8115, allocations: 3.553 MB / 0.995 GB, free: 7.637 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/0.8118, allocations: 199.6 kB / 0.9951 GB, free: 7.391 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.726, allocations: 0 / 0.9951 GB, free: 7.391 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