Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.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.001629/0.001629, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002146/0.002146, allocations: 212 kB / 22.24 MB, free: 4.855 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.402/1.402, allocations: 230.6 MB / 256 MB, free: 7.805 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.003707/0.003707, allocations: 293.2 kB / 312.7 MB, free: 2.625 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.16/1.16, allocations: 180.6 MB / 0.5369 GB, free: 14.48 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.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",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.00294/0.00294, allocations: 101.6 kB / 0.7395 GB, free: 28.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1736, allocations: 95.39 MB / 0.8326 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003458/0.1771, allocations: 1.64 MB / 0.8342 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1783, allocations: 0.5845 MB / 0.8348 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.1784, allocations: 7.938 kB / 0.8348 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001896/0.1786, allocations: 31.72 kB / 0.8348 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.1789, allocations: 59.73 kB / 0.8349 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.1791, allocations: 75.84 kB / 0.835 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.1794, allocations: 139.5 kB / 0.8351 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1795, allocations: 33.95 kB / 0.8351 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.1797, allocations: 63.7 kB / 0.8352 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1798, allocations: 59.7 kB / 0.8353 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.1798, allocations: 8 kB / 0.8353 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.398e-05/0.1799, allocations: 23.98 kB / 0.8353 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.959e-05/0.18, allocations: 51.77 kB / 0.8353 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.171e-05/0.1801, allocations: 43.67 kB / 0.8354 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.1803, allocations: 155.3 kB / 0.8355 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1803, allocations: 0 / 0.8355 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1803, allocations: 0 / 0.8355 GB, free: 5.352 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.1804, allocations: 4 kB / 0.8355 GB, free: 5.348 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006489/0.181, allocations: 409.2 kB / 0.8359 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.181, allocations: 13.94 kB / 0.8359 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.1811, allocations: 38.73 kB / 0.836 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.1812, allocations: 28.8 kB / 0.836 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.1816, allocations: 182 kB / 0.8362 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1816, allocations: 8.375 kB / 0.8362 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.1816, allocations: 4.375 kB / 0.8362 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.1819, allocations: 165.1 kB / 0.8363 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.1819, allocations: 0 / 0.8363 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.182, allocations: 4 kB / 0.8363 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.182, allocations: 0 / 0.8363 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.1822, allocations: 59.94 kB / 0.8364 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006008/0.1828, allocations: 343.7 kB / 0.8367 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.1829, allocations: 42.55 kB / 0.8368 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.183, allocations: 28.89 kB / 0.8368 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.183, allocations: 3.938 kB / 0.8368 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.1833, allocations: 152.4 kB / 0.8369 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.1833, allocations: 4 kB / 0.837 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004244/0.1837, allocations: 113.5 kB / 0.8371 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.1838, allocations: 85.11 kB / 0.8371 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.1841, allocations: 260.8 kB / 0.8374 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.1841, allocations: 29.64 kB / 0.8374 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.389e-05/0.1842, allocations: 124.1 kB / 0.8375 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.1842, allocations: 15.91 kB / 0.8376 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.1842, allocations: 17.72 kB / 0.8376 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.1844, allocations: 330.8 kB / 0.8379 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.1845, allocations: 19.98 kB / 0.8379 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.1846, allocations: 77.05 kB / 0.838 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.1848, allocations: 74.55 kB / 0.838 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1848, allocations: 0 / 0.838 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000278/0.1851, allocations: 101.5 kB / 0.8381 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1851, allocations: 4 kB / 0.8381 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1851, allocations: 4 kB / 0.8382 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.1852, allocations: 3.938 kB / 0.8382 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1853, allocations: 20.02 kB / 0.8382 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.1853, allocations: 0 / 0.8382 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.828e-05/0.1854, allocations: 15.92 kB / 0.8382 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.1854, allocations: 0 / 0.8382 GB, free: 2.363 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.000114/0.1855, allocations: 130.8 kB / 0.8383 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.61e-05/0.1855, allocations: 19.86 kB / 0.8383 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.1856, allocations: 29.25 kB / 0.8384 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1856, allocations: 0 / 0.8384 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1856, allocations: 0 / 0.8384 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1856, allocations: 0 / 0.8384 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.1857, allocations: 176.7 kB / 0.8385 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1857, allocations: 4 kB / 0.8385 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.1858, allocations: 11.98 kB / 0.8385 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1858, allocations: 0 / 0.8385 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1858, allocations: 7.938 kB / 0.8386 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1858, allocations: 0 / 0.8386 GB, free: 1.938 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1858, allocations: 3.938 kB / 0.8386 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002851/0.1861, allocations: 124.9 kB / 0.8387 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.1862, allocations: 15.91 kB / 0.8387 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.1862, allocations: 11.92 kB / 0.8387 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.467e-05/0.1863, allocations: 4 kB / 0.8387 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.1863, allocations: 11.98 kB / 0.8387 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.1863, allocations: 4 kB / 0.8387 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001803/0.1865, allocations: 188.5 kB / 0.8389 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1865, allocations: 0 / 0.8389 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000211/0.1867, allocations: 20 kB / 0.8389 GB, free: 1.547 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0007115/0.1874, allocations: 0.69 MB / 0.8396 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002743/0.1877, allocations: 63.88 kB / 0.8397 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1877, allocations: 0 / 0.8397 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.1878, allocations: 27.97 kB / 0.8397 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.1881, allocations: 46.36 kB / 0.8397 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.1904, allocations: 1.762 MB / 0.8414 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.1905, allocations: 118 kB / 0.8416 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.321e-05/0.1906, allocations: 16.42 kB / 0.8416 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.458e-05/0.1907, allocations: 51.41 kB / 0.8416 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of SimCode: time 7.22e-07/0.1907, allocations: 0 / 0.8416 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.2226, allocations: 4.287 MB / 0.8458 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.92, allocations: 10.56 kB / 0.8458 GB, free: 10.52 MB / 0.5919 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.878536382690072] Failed to read output from testmodel.py, exit status != 0: 11.019065564963967 11.034781704 10.851190848 Calling exit ...