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.0009928/0.0009928, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 191.3 kB / 16.53 MB, free: 6.391 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.51/1.51, allocations: 205.1 MB / 222.4 MB, free: 4.562 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.622/1.622, allocations: 292.3 MB / 0.5489 GB, free: 13.55 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.001443/0.001444, allocations: 68.67 kB / 0.6716 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2415, allocations: 114.5 MB / 0.7835 GB, free: 13.51 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00327/0.2449, allocations: 1.818 MB / 0.7852 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009885/0.2459, allocations: 0.5824 MB / 0.7858 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.274e-05/0.246, allocations: 0 / 0.7858 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.2461, allocations: 31.72 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.588e-05/0.2462, allocations: 27.73 kB / 0.7859 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.2464, allocations: 63.86 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.2467, allocations: 175.4 kB / 0.7861 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.2468, allocations: 49.64 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.641e-05/0.2469, allocations: 47.8 kB / 0.7862 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.582e-05/0.247, allocations: 55.7 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.342e-05/0.247, allocations: 12 kB / 0.7863 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.228e-05/0.247, allocations: 12 kB / 0.7863 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.19e-05/0.2471, allocations: 35.83 kB / 0.7863 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.825e-05/0.2472, allocations: 67.55 kB / 0.7864 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.2473, allocations: 123.8 kB / 0.7865 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2473, allocations: 0 / 0.7865 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2474, allocations: 0 / 0.7865 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.2474, allocations: 0 / 0.7865 GB, free: 10.39 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.0006879/0.2481, allocations: 482.7 kB / 0.7869 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2481, allocations: 8.031 kB / 0.7869 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.052e-05/0.2482, allocations: 46.73 kB / 0.787 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.2482, allocations: 16.75 kB / 0.787 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.2485, allocations: 235.8 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.2485, allocations: 8.375 kB / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.2485, allocations: 12.38 kB / 0.7873 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.2488, allocations: 146 kB / 0.7874 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2488, allocations: 0 / 0.7874 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.2488, allocations: 4 kB / 0.7874 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2488, allocations: 11.92 kB / 0.7874 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002345/0.2491, allocations: 75.88 kB / 0.7875 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000895/0.25, allocations: 0.7431 MB / 0.7882 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.2501, allocations: 42.56 kB / 0.7882 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.2503, allocations: 32.83 kB / 0.7883 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.2503, allocations: 0 / 0.7883 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002918/0.2506, allocations: 134.6 kB / 0.7884 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.022e-06/0.2506, allocations: 0 / 0.7884 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004644/0.2511, allocations: 165.5 kB / 0.7886 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.2512, allocations: 136.8 kB / 0.7887 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.2514, allocations: 215.2 kB / 0.7889 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.2514, allocations: 25.7 kB / 0.7889 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.825e-05/0.2515, allocations: 123.9 kB / 0.789 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.2515, allocations: 43.59 kB / 0.7891 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/0.2516, allocations: 37.7 kB / 0.7891 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.2517, allocations: 326.8 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.2518, allocations: 48.03 kB / 0.7895 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.2521, allocations: 152.9 kB / 0.7896 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.2524, allocations: 198.4 kB / 0.7898 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2524, allocations: 0 / 0.7898 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003849/0.2528, allocations: 205.3 kB / 0.79 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2528, allocations: 8 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2528, allocations: 4 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2528, allocations: 4 kB / 0.79 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.253, allocations: 35.92 kB / 0.7901 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.253, allocations: 8 kB / 0.7901 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.2531, allocations: 28.11 kB / 0.7901 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.2532, allocations: 12 kB / 0.7901 GB, free: 6.281 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.0001076/0.2533, allocations: 137.6 kB / 0.7902 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.2533, allocations: 19.81 kB / 0.7903 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.2534, allocations: 21.39 kB / 0.7903 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2534, allocations: 0 / 0.7903 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.2534, allocations: 4 kB / 0.7903 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2534, allocations: 0 / 0.7903 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007236/0.2541, allocations: 0.5134 MB / 0.7908 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2541, allocations: 4 kB / 0.7908 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.2542, allocations: 20.03 kB / 0.7908 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2543, allocations: 3.984 kB / 0.7908 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.2543, allocations: 4 kB / 0.7908 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2543, allocations: 3.938 kB / 0.7908 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2543, allocations: 4 kB / 0.7908 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005087/0.2548, allocations: 360.1 kB / 0.7912 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.345e-05/0.2549, allocations: 96.92 kB / 0.7913 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.2549, allocations: 8.031 kB / 0.7913 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.2551, allocations: 15.92 kB / 0.7913 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.2551, allocations: 15.98 kB / 0.7913 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.2551, allocations: 8.062 kB / 0.7913 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001104/0.2552, allocations: 144.5 kB / 0.7914 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2552, allocations: 0 / 0.7914 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003103/0.2556, allocations: 31.94 kB / 0.7915 GB, free: 4.773 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.0007892/0.2564, allocations: 0.9083 MB / 0.7924 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003031/0.2567, allocations: 115.8 kB / 0.7925 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2567, allocations: 0 / 0.7925 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.2568, allocations: 48.91 kB / 0.7925 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/0.2574, allocations: 62.27 kB / 0.7926 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002439/0.2598, allocations: 2.276 MB / 0.7948 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.2601, allocations: 0.7242 MB / 0.7955 GB, free: 408 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.028e-05/0.2602, allocations: 21.86 kB / 0.7955 GB, free: 388 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.2603, allocations: 47.42 kB / 0.7956 GB, free: 344 kB / 0.6075 GB Notification: Performance of SimCode: time 5.11e-07/0.2603, allocations: 4 kB / 0.7956 GB, free: 340 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.2821, allocations: 3.969 MB / 0.7994 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.154/7.436, allocations: 3.984 kB / 0.7995 GB, free: 12.45 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)