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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 110.1 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 219.9 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002442/0.002442, allocations: 273.7 kB / 313.5 MB, free: 2.816 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.257/1.257, allocations: 180.6 MB / 0.5377 GB, free: 12.93 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002869/0.002869, allocations: 98.36 kB / 0.7404 GB, free: 28.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2161, allocations: 95.39 MB / 0.8335 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003393/0.2195, allocations: 1.866 MB / 0.8353 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.2206, allocations: 0.5922 MB / 0.8359 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.64e-05/0.2207, allocations: 7.938 kB / 0.8359 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.2209, allocations: 23.73 kB / 0.8359 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 7.072e-05/0.2209, allocations: 23.73 kB / 0.836 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.2212, allocations: 71.8 kB / 0.836 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002583/0.2214, allocations: 167.5 kB / 0.8362 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.2216, allocations: 46.05 kB / 0.8362 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.2217, allocations: 55.72 kB / 0.8363 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.249e-05/0.2218, allocations: 63.64 kB / 0.8364 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.783e-05/0.2218, allocations: 8 kB / 0.8364 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.2218, allocations: 12 kB / 0.8364 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.76e-05/0.2219, allocations: 27.86 kB / 0.8364 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.623e-05/0.2219, allocations: 67.59 kB / 0.8365 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.2221, allocations: 131.3 kB / 0.8366 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.2222, allocations: 3.984 kB / 0.8366 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2222, allocations: 0 / 0.8366 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.2222, allocations: 0 / 0.8366 GB, free: 5.422 MB / 0.5762 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.0007712/0.2229, allocations: 431.2 kB / 0.837 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.223, allocations: 13.34 kB / 0.837 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.248e-05/0.223, allocations: 192 / 0.837 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.125e-05/0.223, allocations: 42.73 kB / 0.8371 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.2231, allocations: 20.8 kB / 0.8371 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.2234, allocations: 178.2 kB / 0.8372 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.2234, allocations: 8.375 kB / 0.8373 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.2235, allocations: 12.38 kB / 0.8373 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.2238, allocations: 150.5 kB / 0.8374 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2238, allocations: 7.938 kB / 0.8374 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.2238, allocations: 8 kB / 0.8374 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2238, allocations: 7.938 kB / 0.8374 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.2241, allocations: 67.88 kB / 0.8375 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.2251, allocations: 0.7112 MB / 0.8382 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.2253, allocations: 46.53 kB / 0.8382 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.2254, allocations: 32.84 kB / 0.8383 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2254, allocations: 7.938 kB / 0.8383 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/0.2257, allocations: 126.7 kB / 0.8384 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.2257, allocations: 0 / 0.8384 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0005056/0.2262, allocations: 169.5 kB / 0.8386 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.2263, allocations: 132.5 kB / 0.8387 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.2265, allocations: 196 kB / 0.8389 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.2266, allocations: 37.64 kB / 0.8389 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2267, allocations: 128 kB / 0.839 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.754e-05/0.2267, allocations: 35.91 kB / 0.8391 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.2268, allocations: 41.7 kB / 0.8391 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2269, allocations: 334.9 kB / 0.8394 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.2271, allocations: 35.97 kB / 0.8395 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.2273, allocations: 150.5 kB / 0.8396 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.2276, allocations: 202.5 kB / 0.8398 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2276, allocations: 4.25 kB / 0.8398 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004775/0.2281, allocations: 201.2 kB / 0.84 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.2281, allocations: 8 kB / 0.84 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.2281, allocations: 8 kB / 0.84 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.2282, allocations: 4 kB / 0.84 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.2283, allocations: 40.41 kB / 0.84 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2283, allocations: 4 kB / 0.8401 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.2284, allocations: 31.83 kB / 0.8401 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.2285, allocations: 19.88 kB / 0.8401 GB, free: 1.461 MB / 0.5762 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.0001379/0.2286, allocations: 135.4 kB / 0.8402 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.2286, allocations: 15.91 kB / 0.8402 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.2287, allocations: 21.39 kB / 0.8403 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2287, allocations: 7.938 kB / 0.8403 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2287, allocations: 4 kB / 0.8403 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.2287, allocations: 4 kB / 0.8403 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.2296, allocations: 492.6 kB / 0.8407 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2296, allocations: 0 / 0.8407 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.2297, allocations: 15.98 kB / 0.8408 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2297, allocations: 4 kB / 0.8408 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.2297, allocations: 8 kB / 0.8408 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.2297, allocations: 7.938 kB / 0.8408 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2297, allocations: 3.938 kB / 0.8408 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005437/0.2303, allocations: 354.2 kB / 0.8411 GB, free: 336 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.2303, allocations: 27.77 kB / 0.8412 GB, free: 308 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.2303, allocations: 8 kB / 0.8412 GB, free: 300 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.2305, allocations: 15.92 kB / 0.8412 GB, free: 284 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.398e-05/0.2305, allocations: 19.91 kB / 0.8412 GB, free: 264 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.2306, allocations: 4 kB / 0.8412 GB, free: 260 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001308/0.2307, allocations: 143.4 kB / 0.8413 GB, free: 116 kB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.2307, allocations: 4 kB / 0.8413 GB, free: 112 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003296/0.231, allocations: 28 kB / 0.8414 GB, free: 84 kB / 0.5762 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.0009748/0.232, allocations: 0.889 MB / 0.8422 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003406/0.2323, allocations: 112.5 kB / 0.8423 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2323, allocations: 7.938 kB / 0.8423 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.2326, allocations: 48.09 kB / 0.8424 GB, free: 15 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.2331, allocations: 66.16 kB / 0.8425 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.2362, allocations: 2.278 MB / 0.8447 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.2366, allocations: 0.7203 MB / 0.8454 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.113e-05/0.2367, allocations: 17.48 kB / 0.8454 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.709e-05/0.2368, allocations: 51.42 kB / 0.8455 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of SimCode: time 9.02e-07/0.2368, allocations: 0 / 0.8455 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.2648, allocations: 4.289 MB / 0.8496 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.36, allocations: 14.23 kB / 0.8497 GB, free: 7.539 MB / 0.5919 GB " [Timeout remaining time 648] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.734610840969253] Failed to read output from testmodel.py, exit status != 0: 11.520622549986001 11.545335363 11.320036821 Calling exit ...