Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.000955/0.000955, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001021/0.001021, allocations: 181 kB / 23.36 MB, free: 1.133 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 1.067/1.067, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.8852/0.8852, allocations: 154.6 MB / 414.9 MB, free: 0.4961 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.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: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 480 MB, free: 6.871 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.262e-05/2.462e-05, allocations: 2.969 kB / 480 MB, free: 6.867 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002441/0.002465, allocations: 1.74 MB / 481.8 MB, free: 5.152 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008874/0.003353, allocations: 0.6035 MB / 482.4 MB, free: 4.551 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.003469, allocations: 8.594 kB / 482.4 MB, free: 4.543 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002064/0.003675, allocations: 21.78 kB / 482.4 MB, free: 4.523 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.003911, allocations: 71.77 kB / 482.5 MB, free: 4.461 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.004124, allocations: 77.44 kB / 482.5 MB, free: 4.387 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.00431, allocations: 143.1 kB / 482.7 MB, free: 4.254 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.004431, allocations: 27.48 kB / 482.7 MB, free: 4.23 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001877/0.004619, allocations: 79.8 kB / 482.8 MB, free: 4.152 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.00472, allocations: 51.81 kB / 482.8 MB, free: 4.102 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.004745, allocations: 8.719 kB / 482.8 MB, free: 4.094 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.509e-05/0.00483, allocations: 35.86 kB / 482.9 MB, free: 4.059 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 8.471e-05/0.004914, allocations: 49.42 kB / 482.9 MB, free: 4.012 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 4.248e-05/0.004957, allocations: 31.91 kB / 482.9 MB, free: 3.98 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.005129, allocations: 115.5 kB / 483.1 MB, free: 3.867 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.005131, allocations: 1.469 kB / 483.1 MB, free: 3.867 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.005131, allocations: 0 / 483.1 MB, free: 3.867 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.005135, allocations: 0 / 483.1 MB, free: 3.867 MB / 442.7 MB 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.0003969/0.005532, allocations: 367.7 kB / 483.4 MB, free: 3.488 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.005569, allocations: 8.688 kB / 483.4 MB, free: 3.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.005697, allocations: 26.06 kB / 483.5 MB, free: 3.457 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.005932, allocations: 190 kB / 483.6 MB, free: 3.246 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.005942, allocations: 1.031 kB / 483.6 MB, free: 3.246 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.005955, allocations: 16.31 kB / 483.7 MB, free: 3.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.006125, allocations: 140.9 kB / 483.8 MB, free: 3.074 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.006131, allocations: 192 / 483.8 MB, free: 3.074 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.006142, allocations: 5.062 kB / 483.8 MB, free: 3.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.006149, allocations: 7.938 kB / 483.8 MB, free: 3.062 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.388e-05/0.006173, allocations: 8.562 kB / 483.8 MB, free: 3.055 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.006503, allocations: 218.4 kB / 484 MB, free: 2.824 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.85e-05/0.006541, allocations: 18.58 kB / 484 MB, free: 2.797 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.006557, allocations: 5.484 kB / 484.1 MB, free: 2.789 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.00657, allocations: 0.5938 kB / 484.1 MB, free: 2.789 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.006686, allocations: 131.6 kB / 484.2 MB, free: 2.633 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.006687, allocations: 0 / 484.2 MB, free: 2.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001313/0.006818, allocations: 46.3 kB / 484.2 MB, free: 2.582 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.006858, allocations: 82.05 kB / 484.3 MB, free: 2.484 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.006988, allocations: 213 kB / 484.5 MB, free: 2.262 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.007001, allocations: 25.7 kB / 484.5 MB, free: 2.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.167e-05/0.007043, allocations: 110.2 kB / 484.6 MB, free: 2.121 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.007063, allocations: 15.89 kB / 484.7 MB, free: 2.105 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.00709, allocations: 17.7 kB / 484.7 MB, free: 2.082 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.468e-05/0.007175, allocations: 330.7 kB / 485 MB, free: 1.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.007187, allocations: 8.828 kB / 485 MB, free: 1.742 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.925e-05/0.007226, allocations: 53.14 kB / 485.1 MB, free: 1.672 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.753e-05/0.007263, allocations: 30.39 kB / 485.1 MB, free: 1.633 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.007265, allocations: 0.9688 kB / 485.1 MB, free: 1.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.146e-05/0.007337, allocations: 59 kB / 485.2 MB, free: 1.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.007349, allocations: 4 kB / 485.2 MB, free: 1.566 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.007356, allocations: 4 kB / 485.2 MB, free: 1.562 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.007367, allocations: 0 / 485.2 MB, free: 1.562 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.325e-05/0.00743, allocations: 8.516 kB / 485.2 MB, free: 1.555 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.007433, allocations: 9.219 kB / 485.2 MB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.169e-05/0.007465, allocations: 4 kB / 485.2 MB, free: 1.543 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.007471, allocations: 0 / 485.2 MB, free: 1.543 MB / 442.7 MB 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 6.637e-05/0.007538, allocations: 122.4 kB / 485.3 MB, free: 1.414 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.007551, allocations: 8 kB / 485.3 MB, free: 1.406 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.221e-05/0.007583, allocations: 21.02 kB / 485.3 MB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.007585, allocations: 0 / 485.3 MB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.007587, allocations: 0.5 kB / 485.3 MB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.007589, allocations: 0 / 485.3 MB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.472e-05/0.007674, allocations: 103.5 kB / 485.4 MB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.007676, allocations: 0 / 485.4 MB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.781e-05/0.007704, allocations: 11.98 kB / 485.4 MB, free: 1.254 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.007706, allocations: 0 / 485.4 MB, free: 1.254 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-06/0.00771, allocations: 0.8125 kB / 485.4 MB, free: 1.254 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.007711, allocations: 0 / 485.4 MB, free: 1.254 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.007712, allocations: 3.938 kB / 485.4 MB, free: 1.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.341e-05/0.007796, allocations: 79.06 kB / 485.5 MB, free: 1.156 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.123e-05/0.007807, allocations: 7.953 kB / 485.5 MB, free: 1.148 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.007819, allocations: 0.875 kB / 485.5 MB, free: 1.148 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.624e-05/0.007845, allocations: 11.98 kB / 485.5 MB, free: 1.137 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.00788, allocations: 5.406 kB / 485.6 MB, free: 1.133 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.007897, allocations: 7.984 kB / 485.6 MB, free: 1.125 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.523e-05/0.007952, allocations: 66 kB / 485.6 MB, free: 1.059 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007952, allocations: 4 kB / 485.6 MB, free: 1.055 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001273/0.00808, allocations: 28.53 kB / 485.7 MB, free: 1.027 MB / 442.7 MB 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.000178/0.008258, allocations: 107.2 kB / 485.8 MB, free: 0.9219 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.385e-05/0.008331, allocations: 21.72 kB / 485.8 MB, free: 0.8984 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.008335, allocations: 1.062 kB / 485.8 MB, free: 0.8984 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.945e-05/0.008354, allocations: 9.938 kB / 485.8 MB, free: 0.8867 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.008519, allocations: 57.28 kB / 485.8 MB, free: 0.832 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004974/0.009017, allocations: 279.7 kB / 486.1 MB, free: 0.5312 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.986e-05/0.009057, allocations: 71.33 kB / 486.2 MB, free: 452 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 4.402e-05/0.009101, allocations: 12.98 kB / 486.2 MB, free: 436 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.385e-05/0.009184, allocations: 75.36 kB / 486.3 MB, free: 360 kB / 442.7 MB Notification: Performance of SimCode: time 1.042e-06/0.009185, allocations: 0.8125 kB / 486.3 MB, free: 360 kB / 442.7 MB Notification: Performance of Templates: time 0.003974/0.01316, allocations: 1.793 MB / 488.1 MB, free: 14.73 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8327634558081627]