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.001383/0.001383, allocations: 76.23 kB / 19.18 MB, free: 2.52 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.001515/0.001515, allocations: 165.3 kB / 22.45 MB, free: 5.371 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.443/1.443, allocations: 177.2 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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-531:686: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-531:694: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 1.213/1.213, allocations: 154.6 MB / 413.8 MB, free: 5.203 MB / 382.1 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 178] 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 2.275e-06/2.275e-06, allocations: 0 / 0.6185 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.196e-05/4.423e-05, allocations: 2.281 kB / 0.6185 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003743/0.003787, allocations: 1.65 MB / 0.6202 GB, free: 2.934 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.005022, allocations: 0.5765 MB / 0.6207 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.202e-05/0.005114, allocations: 7.938 kB / 0.6207 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.005329, allocations: 27.73 kB / 0.6208 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003134/0.005643, allocations: 63.66 kB / 0.6208 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.005903, allocations: 79.78 kB / 0.6209 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.006171, allocations: 135.5 kB / 0.621 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.006378, allocations: 33.59 kB / 0.6211 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.006645, allocations: 83.73 kB / 0.6211 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.006775, allocations: 55.81 kB / 0.6212 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.6e-05/0.006811, allocations: 12 kB / 0.6212 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.153e-05/0.006893, allocations: 20 kB / 0.6212 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.007008, allocations: 43.83 kB / 0.6213 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.635e-05/0.007074, allocations: 35.86 kB / 0.6213 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.007352, allocations: 151.5 kB / 0.6214 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.007358, allocations: 4 kB / 0.6214 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.00736, allocations: 0 / 0.6214 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.007366, allocations: 0 / 0.6214 GB, free: 1.605 MB / 0.5294 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.0007775/0.008144, allocations: 405.2 kB / 0.6218 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.008186, allocations: 16.03 kB / 0.6218 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.008373, allocations: 28.78 kB / 0.6219 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.008738, allocations: 185.4 kB / 0.622 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.00875, allocations: 384 / 0.622 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.008766, allocations: 8.375 kB / 0.6221 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.009106, allocations: 165.5 kB / 0.6222 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.009116, allocations: 4.188 kB / 0.6222 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.009131, allocations: 384 / 0.6222 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.00914, allocations: 7.938 kB / 0.6222 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.009383, allocations: 67.92 kB / 0.6223 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005834/0.009967, allocations: 300.3 kB / 0.6226 GB, free: 348 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.01011, allocations: 34.56 kB / 0.6226 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.01023, allocations: 32.89 kB / 0.6226 GB, free: 268 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.01025, allocations: 0 / 0.6226 GB, free: 268 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002943/0.01054, allocations: 160.4 kB / 0.6228 GB, free: 76 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.01055, allocations: 0 / 0.6228 GB, free: 76 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0005086/0.01105, allocations: 113.5 kB / 0.6229 GB, free: 15.96 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.01112, allocations: 85.09 kB / 0.623 GB, free: 15.86 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.0114, allocations: 244.1 kB / 0.6232 GB, free: 15.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.01143, allocations: 25.7 kB / 0.6232 GB, free: 15.58 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.01153, allocations: 127.9 kB / 0.6234 GB, free: 15.45 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.01156, allocations: 11.91 kB / 0.6234 GB, free: 15.44 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.0116, allocations: 17.7 kB / 0.6234 GB, free: 15.41 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.01176, allocations: 334.7 kB / 0.6237 GB, free: 15.08 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.01188, allocations: 31.91 kB / 0.6237 GB, free: 15.05 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.01203, allocations: 77.11 kB / 0.6238 GB, free: 14.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.01225, allocations: 62.53 kB / 0.6239 GB, free: 14.88 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01225, allocations: 0 / 0.6239 GB, free: 14.88 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002919/0.01254, allocations: 101.5 kB / 0.624 GB, free: 14.78 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.01256, allocations: 8 kB / 0.624 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.01256, allocations: 0 / 0.624 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.01258, allocations: 0 / 0.624 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.0127, allocations: 19.92 kB / 0.624 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.01271, allocations: 4 kB / 0.624 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.001e-05/0.0128, allocations: 11.92 kB / 0.624 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.01281, allocations: 7.938 kB / 0.624 GB, free: 14.73 MB / 0.545 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.0001231/0.01293, allocations: 127.8 kB / 0.6241 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.01296, allocations: 15.91 kB / 0.6242 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.013, allocations: 25.02 kB / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.013, allocations: 0 / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.01301, allocations: 0 / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.01301, allocations: 0 / 0.6242 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.01317, allocations: 157.2 kB / 0.6243 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.01317, allocations: 0 / 0.6243 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.102e-05/0.01326, allocations: 11.98 kB / 0.6243 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.01326, allocations: 0 / 0.6243 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.01327, allocations: 4 kB / 0.6243 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.01327, allocations: 4 kB / 0.6243 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01327, allocations: 0 / 0.6243 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.01359, allocations: 129.1 kB / 0.6245 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.818e-05/0.01361, allocations: 7.953 kB / 0.6245 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.01364, allocations: 7.984 kB / 0.6245 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.066e-05/0.01372, allocations: 4.047 kB / 0.6245 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.01377, allocations: 15.97 kB / 0.6245 GB, free: 14.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.01379, allocations: 8 kB / 0.6245 GB, free: 14.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001815/0.01397, allocations: 181.6 kB / 0.6247 GB, free: 13.99 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.01397, allocations: 0 / 0.6247 GB, free: 13.99 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002413/0.01421, allocations: 23.95 kB / 0.6247 GB, free: 13.96 MB / 0.545 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.0002593/0.01447, allocations: 121.4 kB / 0.6248 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003074/0.01478, allocations: 63.83 kB / 0.6249 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01478, allocations: 0 / 0.6249 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.0149, allocations: 27.97 kB / 0.6249 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.01521, allocations: 45.3 kB / 0.625 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005526/0.01576, allocations: 278.8 kB / 0.6252 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.01587, allocations: 114.2 kB / 0.6253 GB, free: 13.28 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.81e-05/0.01593, allocations: 16.42 kB / 0.6253 GB, free: 13.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.01598, allocations: 16.5 kB / 0.6254 GB, free: 13.25 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/0.01598, allocations: 0 / 0.6254 GB, free: 13.25 MB / 0.545 GB Notification: Performance of Templates: time 0.005524/0.0215, allocations: 1.752 MB / 0.6271 GB, free: 11.55 MB / 0.545 GB " [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=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.731932196766138] Failed to read output from testmodel.py, exit status != 0: 0.03164791315793991 0.04591089199999994 0.03544626399999994 Calling exit ...