Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_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.001191/0.001196, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00151/0.00151, allocations: 189.6 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.592/1.592, allocations: 292.3 MB / 0.5486 GB, free: 13.66 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 64.05 kB / 0.6711 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.215, allocations: 114.6 MB / 0.783 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002967/0.218, allocations: 1.877 MB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009809/0.219, allocations: 0.5698 MB / 0.7854 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.2192, allocations: 7.938 kB / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.2193, allocations: 11.86 kB / 0.7854 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.393e-05/0.2194, allocations: 23.8 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.2197, allocations: 63.88 kB / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002305/0.2199, allocations: 167.5 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.2201, allocations: 53.64 kB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.324e-05/0.2202, allocations: 55.72 kB / 0.7857 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.2202, allocations: 59.7 kB / 0.7858 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.2203, allocations: 8 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.92e-05/0.2203, allocations: 15.94 kB / 0.7858 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.717e-05/0.2203, allocations: 31.84 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.482e-05/0.2204, allocations: 63.61 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.2206, allocations: 135.7 kB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2206, allocations: 4 kB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2206, allocations: 0 / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.2206, allocations: 0 / 0.786 GB, free: 10.65 MB / 0.6075 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.0006589/0.2213, allocations: 466.7 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.2213, allocations: 12.03 kB / 0.7865 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.749e-05/0.2214, allocations: 50.67 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.2214, allocations: 16.75 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.2217, allocations: 223.9 kB / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.2217, allocations: 8.375 kB / 0.7868 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.2217, allocations: 12.38 kB / 0.7868 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.222, allocations: 154 kB / 0.7869 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.222, allocations: 0 / 0.7869 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.2221, allocations: 4 kB / 0.7869 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.2221, allocations: 0 / 0.7869 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002137/0.2223, allocations: 75.88 kB / 0.787 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008511/0.2231, allocations: 0.7469 MB / 0.7877 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.2233, allocations: 46.56 kB / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.259e-05/0.2234, allocations: 32.83 kB / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.2234, allocations: 0 / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/0.2237, allocations: 134.6 kB / 0.7879 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/0.2237, allocations: 0 / 0.7879 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004371/0.2241, allocations: 161.3 kB / 0.7881 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.636e-05/0.2242, allocations: 140.7 kB / 0.7882 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.2244, allocations: 211.3 kB / 0.7884 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.2244, allocations: 33.7 kB / 0.7885 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.574e-05/0.2245, allocations: 124.1 kB / 0.7886 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.2245, allocations: 35.45 kB / 0.7886 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.2246, allocations: 45.7 kB / 0.7887 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.2247, allocations: 326.8 kB / 0.789 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.2248, allocations: 35.97 kB / 0.789 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.225, allocations: 147.2 kB / 0.7891 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.2253, allocations: 202.3 kB / 0.7893 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.2253, allocations: 4 kB / 0.7893 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003677/0.2257, allocations: 205.4 kB / 0.7895 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2257, allocations: 11.98 kB / 0.7896 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.2257, allocations: 4 kB / 0.7896 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2257, allocations: 4 kB / 0.7896 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.2258, allocations: 31.92 kB / 0.7896 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.2259, allocations: 7.938 kB / 0.7896 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.226, allocations: 27.83 kB / 0.7896 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.226, allocations: 8.188 kB / 0.7896 GB, free: 6.559 MB / 0.6075 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.0001025/0.2261, allocations: 149.6 kB / 0.7898 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.2262, allocations: 15.81 kB / 0.7898 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/0.2262, allocations: 17.41 kB / 0.7898 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.2262, allocations: 7.984 kB / 0.7898 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2262, allocations: 0 / 0.7898 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2262, allocations: 256 / 0.7898 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006796/0.2269, allocations: 0.5248 MB / 0.7903 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2269, allocations: 0 / 0.7903 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.227, allocations: 15.98 kB / 0.7903 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2271, allocations: 0 / 0.7903 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.2271, allocations: 4 kB / 0.7903 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2271, allocations: 3.938 kB / 0.7904 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2271, allocations: 7.938 kB / 0.7904 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004413/0.2275, allocations: 364.1 kB / 0.7907 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.2276, allocations: 88.92 kB / 0.7908 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.613e-05/0.2276, allocations: 8.031 kB / 0.7908 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.2278, allocations: 23.92 kB / 0.7908 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.125e-05/0.2278, allocations: 7.984 kB / 0.7908 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2279, allocations: 8 kB / 0.7908 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.294e-05/0.228, allocations: 136.6 kB / 0.791 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.228, allocations: 0 / 0.791 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003157/0.2283, allocations: 31.94 kB / 0.791 GB, free: 5.051 MB / 0.6075 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.0006944/0.229, allocations: 0.8999 MB / 0.7919 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.2293, allocations: 119.7 kB / 0.792 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2293, allocations: 0 / 0.792 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.2294, allocations: 49.03 kB / 0.792 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.23, allocations: 70.56 kB / 0.7921 GB, free: 3.891 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.2322, allocations: 2.308 MB / 0.7944 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.2325, allocations: 0.732 MB / 0.7951 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.412e-05/0.2326, allocations: 13.55 kB / 0.7951 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-05/0.2326, allocations: 51.42 kB / 0.7951 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of SimCode: time 3.1e-07/0.2326, allocations: 0 / 0.7951 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.167/1.4, allocations: 3.794 MB / 0.7988 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/1.4, allocations: 203.4 kB / 0.799 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.385/3.785, allocations: 0 / 0.799 GB, free: 12.66 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)