Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.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.0007168/0.0007168, allocations: 105.5 kB / 18.95 MB, free: 1.188 MB / 13.93 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.0007008/0.0007008, allocations: 208.1 kB / 22.25 MB, free: 3.59 MB / 13.93 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 0.8958/0.8958, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03582/0.03582, allocations: 12.19 MB / 324.6 MB, free: 6.086 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0004204/0.0004204, allocations: 23.95 kB / 384.1 MB, free: 10.51 MB / 314.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.496/1.496, allocations: 353.9 MB / 0.7787 GB, free: 4.559 MB / 0.5105 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/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(AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib 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.001327/0.001327, allocations: 119.7 kB / 1.06 GB, free: 24.72 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1797, allocations: 134.9 MB / 1.192 GB, free: 7.441 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001514/0.1812, allocations: 0.8406 MB / 1.193 GB, free: 6.602 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1822, allocations: 1.207 MB / 1.194 GB, free: 5.383 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.004e-05/0.1823, allocations: 0 / 1.194 GB, free: 5.383 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.055e-05/0.1823, allocations: 11.86 kB / 1.194 GB, free: 5.371 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.329e-05/0.1823, allocations: 19.8 kB / 1.194 GB, free: 5.352 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.1827, allocations: 160.1 kB / 1.194 GB, free: 5.199 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.1829, allocations: 167.6 kB / 1.194 GB, free: 5.035 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.569e-05/0.183, allocations: 21.3 kB / 1.194 GB, free: 5.012 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 7.663e-05/0.183, allocations: 67.83 kB / 1.194 GB, free: 4.945 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 7.698e-05/0.1831, allocations: 63.73 kB / 1.194 GB, free: 4.883 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.1831, allocations: 12 kB / 1.194 GB, free: 4.871 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 4.942e-05/0.1832, allocations: 27.98 kB / 1.194 GB, free: 4.844 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.1832, allocations: 27.91 kB / 1.194 GB, free: 4.816 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 5.212e-05/0.1833, allocations: 55.78 kB / 1.194 GB, free: 4.762 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.1834, allocations: 171.6 kB / 1.194 GB, free: 4.594 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1834, allocations: 7.984 kB / 1.195 GB, free: 4.586 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.673e-06/0.1834, allocations: 0 / 1.195 GB, free: 4.586 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.1834, allocations: 0 / 1.195 GB, free: 4.586 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006369/0.1841, allocations: 414 kB / 1.195 GB, free: 4.133 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.1841, allocations: 8.031 kB / 1.195 GB, free: 4.125 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.598e-05/0.1841, allocations: 42.73 kB / 1.195 GB, free: 4.074 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.874e-05/0.1842, allocations: 12.89 kB / 1.195 GB, free: 4.062 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.1845, allocations: 192.3 kB / 1.195 GB, free: 3.852 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.1845, allocations: 8.375 kB / 1.195 GB, free: 3.844 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.1845, allocations: 24.3 kB / 1.195 GB, free: 3.82 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.1846, allocations: 89.95 kB / 1.195 GB, free: 3.727 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.1846, allocations: 0 / 1.195 GB, free: 3.727 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.1846, allocations: 7.938 kB / 1.195 GB, free: 3.719 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1846, allocations: 0 / 1.195 GB, free: 3.719 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.826e-05/0.1847, allocations: 51.95 kB / 1.195 GB, free: 3.668 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004413/0.1852, allocations: 339.6 kB / 1.196 GB, free: 3.293 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 6.963e-05/0.1852, allocations: 34.56 kB / 1.196 GB, free: 3.25 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.447e-05/0.1853, allocations: 28.89 kB / 1.196 GB, free: 3.219 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.1853, allocations: 4 kB / 1.196 GB, free: 3.215 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.1855, allocations: 95.3 kB / 1.196 GB, free: 3.109 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.1855, allocations: 4 kB / 1.196 GB, free: 3.105 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0002624/0.1858, allocations: 133.5 kB / 1.196 GB, free: 2.969 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1858, allocations: 63.33 kB / 1.196 GB, free: 2.895 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.1859, allocations: 139 kB / 1.196 GB, free: 2.75 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.1859, allocations: 33.7 kB / 1.196 GB, free: 2.711 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.186, allocations: 111.9 kB / 1.196 GB, free: 2.598 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.186, allocations: 31.78 kB / 1.196 GB, free: 2.566 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-05/0.186, allocations: 45.7 kB / 1.196 GB, free: 2.516 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.542e-05/0.1861, allocations: 326.8 kB / 1.197 GB, free: 2.188 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1862, allocations: 81.66 kB / 1.197 GB, free: 2.102 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1863, allocations: 160.8 kB / 1.197 GB, free: 1.898 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.1865, allocations: 200.7 kB / 1.197 GB, free: 1.656 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1865, allocations: 0 / 1.197 GB, free: 1.656 MB / 0.823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002868/0.1868, allocations: 276.6 kB / 1.197 GB, free: 1.367 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.1868, allocations: 37.69 kB / 1.197 GB, free: 1.324 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1869, allocations: 4 kB / 1.197 GB, free: 1.32 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1869, allocations: 4 kB / 1.197 GB, free: 1.316 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.56e-05/0.1869, allocations: 31.86 kB / 1.197 GB, free: 1.285 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.1869, allocations: 4.375 kB / 1.197 GB, free: 1.281 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1871, allocations: 51.84 kB / 1.197 GB, free: 1.23 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.1871, allocations: 8 kB / 1.197 GB, free: 1.223 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 8.222e-05/0.1872, allocations: 135.5 kB / 1.198 GB, free: 1.082 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.1872, allocations: 11.95 kB / 1.198 GB, free: 1.07 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.1872, allocations: 8.719 kB / 1.198 GB, free: 1.062 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1872, allocations: 7.938 kB / 1.198 GB, free: 1.055 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1872, allocations: 384 / 1.198 GB, free: 1.055 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1872, allocations: 4 kB / 1.198 GB, free: 1.051 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.1876, allocations: 369.4 kB / 1.198 GB, free: 0.6406 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1876, allocations: 3.938 kB / 1.198 GB, free: 0.6367 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.454e-05/0.1876, allocations: 11.94 kB / 1.198 GB, free: 0.625 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1876, allocations: 4 kB / 1.198 GB, free: 0.6211 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.1876, allocations: 3.984 kB / 1.198 GB, free: 0.6172 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1876, allocations: 0 / 1.198 GB, free: 0.6172 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1876, allocations: 0 / 1.198 GB, free: 0.6172 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.1878, allocations: 239.4 kB / 1.198 GB, free: 376 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.227e-05/0.1879, allocations: 23.88 kB / 1.198 GB, free: 352 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.1879, allocations: 4 kB / 1.198 GB, free: 348 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.101e-05/0.1879, allocations: 8 kB / 1.198 GB, free: 340 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.295e-05/0.1879, allocations: 11.91 kB / 1.198 GB, free: 328 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.1879, allocations: 4 kB / 1.198 GB, free: 324 kB / 0.823 GB Notification: Performance of sorting global known variables: time 4.048e-05/0.188, allocations: 104.8 kB / 1.198 GB, free: 220 kB / 0.823 GB Notification: Performance of sort global known variables: time 6.1e-08/0.188, allocations: 0 / 1.198 GB, free: 220 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001806/0.1882, allocations: 31.94 kB / 1.198 GB, free: 188 kB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0004314/0.1886, allocations: 0.7827 MB / 1.199 GB, free: 15.38 MB / 0.8387 GB Notification: Performance of simCode: created initialization part: time 0.0002435/0.1888, allocations: 197.8 kB / 1.199 GB, free: 15.16 MB / 0.8387 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1888, allocations: 4.25 kB / 1.199 GB, free: 15.16 MB / 0.8387 GB Notification: Performance of simCode: created simulation system equations: time 6.185e-05/0.1889, allocations: 43.84 kB / 1.199 GB, free: 15.12 MB / 0.8387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.1891, allocations: 20.06 kB / 1.199 GB, free: 15.1 MB / 0.8387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1906, allocations: 2.088 MB / 1.201 GB, free: 12.82 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.218e-05/0.1907, allocations: 89.62 kB / 1.202 GB, free: 12.72 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 4.566e-05/0.1907, allocations: 16.64 kB / 1.202 GB, free: 12.7 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.191, allocations: 35.42 kB / 1.202 GB, free: 12.67 MB / 0.8387 GB Notification: Performance of SimCode: time 1.513e-06/0.191, allocations: 0 / 1.202 GB, free: 12.67 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.2058, allocations: 3.832 MB / 1.205 GB, free: 8.996 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.123/6.329, allocations: 10.28 kB / 1.205 GB, free: 8.988 MB / 0.8387 GB " [Timeout remaining time 654] (rm -f AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 AixLib_AixLib_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.281432585790753] Failed to read output from testmodel.py, exit status != 0: 6.404894414357841 6.413907596 6.228862877 Calling exit ...