Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.001154/0.001154, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001403/0.001403, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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.8761/0.8761, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.716/1.716, allocations: 377.8 MB / 0.6221 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.496e-05/1.682e-05, allocations: 6.219 kB / 0.9809 GB, free: 2.605 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002302/0.002319, allocations: 1.642 MB / 0.9825 GB, free: 0.9531 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000749/0.003068, allocations: 0.5804 MB / 0.9831 GB, free: 376 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.021e-05/0.003148, allocations: 7.938 kB / 0.9831 GB, free: 368 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.003311, allocations: 23.73 kB / 0.9831 GB, free: 344 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.003524, allocations: 67.61 kB / 0.9832 GB, free: 276 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001644/0.003688, allocations: 79.78 kB / 0.9833 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.003836, allocations: 139.5 kB / 0.9834 GB, free: 56 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.003967, allocations: 33.66 kB / 0.9834 GB, free: 20 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.004239, allocations: 79.8 kB / 0.9835 GB, free: 15.94 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.984e-05/0.004319, allocations: 51.81 kB / 0.9836 GB, free: 15.89 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.17e-05/0.00434, allocations: 8 kB / 0.9836 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.218e-05/0.004402, allocations: 27.92 kB / 0.9836 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.004473, allocations: 43.83 kB / 0.9837 GB, free: 15.81 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.004511, allocations: 35.86 kB / 0.9837 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.00469, allocations: 155.4 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.004692, allocations: 4 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.212e-06/0.004693, allocations: 4 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.004697, allocations: 0 / 0.9838 GB, free: 15.62 MB / 0.948 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.0004611/0.005158, allocations: 393.3 kB / 0.9842 GB, free: 15.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.005194, allocations: 12.03 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.915e-05/0.005224, allocations: 34.75 kB / 0.9843 GB, free: 15.15 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.005337, allocations: 32.78 kB / 0.9843 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.005554, allocations: 197.1 kB / 0.9845 GB, free: 14.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.005562, allocations: 4.375 kB / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.005573, allocations: 8.375 kB / 0.9845 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.00578, allocations: 161.6 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.005787, allocations: 192 / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.005798, allocations: 4.125 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.005804, allocations: 4 kB / 0.9847 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.005937, allocations: 67.94 kB / 0.9847 GB, free: 14.64 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003822/0.006319, allocations: 335.6 kB / 0.985 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.985e-05/0.006399, allocations: 42.55 kB / 0.9851 GB, free: 14.21 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.426e-05/0.006453, allocations: 28.84 kB / 0.9851 GB, free: 14.18 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.006467, allocations: 3.984 kB / 0.9851 GB, free: 14.18 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001599/0.006627, allocations: 148.5 kB / 0.9853 GB, free: 14 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.006628, allocations: 0 / 0.9853 GB, free: 14 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0002489/0.006877, allocations: 121.5 kB / 0.9854 GB, free: 13.88 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.006912, allocations: 84.98 kB / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.007085, allocations: 261.6 kB / 0.9857 GB, free: 13.52 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.007098, allocations: 29.7 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.00716, allocations: 132.1 kB / 0.9859 GB, free: 13.35 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.007176, allocations: 15.83 kB / 0.9859 GB, free: 13.33 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.007203, allocations: 17.72 kB / 0.9859 GB, free: 13.31 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.038e-05/0.007284, allocations: 322.8 kB / 0.9862 GB, free: 12.98 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.462e-05/0.007338, allocations: 23.97 kB / 0.9862 GB, free: 12.96 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.634e-05/0.007405, allocations: 77.11 kB / 0.9863 GB, free: 12.87 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.007512, allocations: 70.5 kB / 0.9864 GB, free: 12.79 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.007514, allocations: 0 / 0.9864 GB, free: 12.79 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001411/0.007655, allocations: 101.5 kB / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.007667, allocations: 8 kB / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.007672, allocations: 96 / 0.9865 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.007684, allocations: 7.984 kB / 0.9865 GB, free: 12.67 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.841e-05/0.007753, allocations: 11.98 kB / 0.9865 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.007758, allocations: 3.938 kB / 0.9865 GB, free: 12.65 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.872e-05/0.007807, allocations: 11.98 kB / 0.9865 GB, free: 12.64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.007817, allocations: 4 kB / 0.9865 GB, free: 12.64 MB / 0.948 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 7.611e-05/0.007893, allocations: 125.8 kB / 0.9866 GB, free: 12.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.704e-05/0.00791, allocations: 19.86 kB / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.007936, allocations: 17.34 kB / 0.9867 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.007937, allocations: 0 / 0.9867 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.007941, allocations: 4.281 kB / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.007946, allocations: 7.922 kB / 0.9867 GB, free: 12.46 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.008056, allocations: 172.7 kB / 0.9868 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.008056, allocations: 0 / 0.9868 GB, free: 12.25 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.418e-05/0.008091, allocations: 19.91 kB / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.008092, allocations: 0 / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.008099, allocations: 3.984 kB / 0.9869 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.0081, allocations: 0 / 0.9869 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.008101, allocations: 0 / 0.9869 GB, free: 12.22 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.008253, allocations: 132.9 kB / 0.987 GB, free: 12.07 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.526e-05/0.008268, allocations: 11.91 kB / 0.987 GB, free: 12.06 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.008283, allocations: 0 / 0.987 GB, free: 12.06 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.45e-05/0.008317, allocations: 7.984 kB / 0.987 GB, free: 12.05 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.008357, allocations: 19.92 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.008374, allocations: 4 kB / 0.987 GB, free: 12.03 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001361/0.008511, allocations: 189.2 kB / 0.9872 GB, free: 11.85 MB / 0.948 GB Notification: Performance of sort global known variables: time 8e-08/0.008511, allocations: 3.938 kB / 0.9872 GB, free: 11.85 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001512/0.008662, allocations: 27.94 kB / 0.9872 GB, free: 11.82 MB / 0.948 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.0004471/0.009109, allocations: 0.6889 MB / 0.9879 GB, free: 11.11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001564/0.009265, allocations: 59.94 kB / 0.988 GB, free: 11.05 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009267, allocations: 3.938 kB / 0.988 GB, free: 11.05 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.372e-05/0.009321, allocations: 27.97 kB / 0.988 GB, free: 11.02 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.009514, allocations: 39.22 kB / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.01091, allocations: 1.762 MB / 0.9898 GB, free: 9.117 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.357e-05/0.01098, allocations: 110.2 kB / 0.9899 GB, free: 8.992 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 4.91e-05/0.01103, allocations: 20.66 kB / 0.9899 GB, free: 8.969 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.699e-05/0.01108, allocations: 48.47 kB / 0.9899 GB, free: 8.922 MB / 0.948 GB Notification: Performance of SimCode: time 3.71e-07/0.01108, allocations: 0 / 0.9899 GB, free: 8.922 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.02795, allocations: 4.407 MB / 0.9942 GB, free: 4.684 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.256/7.284, allocations: 11.58 kB / 0.9942 GB, free: 4.676 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.227577508427203]