Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.00244/0.00244, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 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.003028/0.003028, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.566/1.566, allocations: 177.1 MB / 203.1 MB, free: 5.352 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 1.359/1.359, allocations: 154.8 MB / 414.4 MB, free: 372 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 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: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0.9844 kB / 0.5198 GB, free: 2.312 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.846e-05/3.008e-05, allocations: 5.875 kB / 0.5198 GB, free: 2.309 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003277/0.003307, allocations: 1.66 MB / 0.5215 GB, free: 0.6602 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.004529, allocations: 0.5901 MB / 0.522 GB, free: 68 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.783e-05/0.004607, allocations: 7.938 kB / 0.522 GB, free: 60 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.004785, allocations: 24.34 kB / 0.5221 GB, free: 36 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.005062, allocations: 72.8 kB / 0.5221 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.005287, allocations: 71.83 kB / 0.5222 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.00573, allocations: 144 kB / 0.5223 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.005877, allocations: 34.11 kB / 0.5224 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.006089, allocations: 80.48 kB / 0.5224 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.006209, allocations: 47.88 kB / 0.5225 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.006242, allocations: 9.219 kB / 0.5225 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.436e-05/0.006316, allocations: 23.98 kB / 0.5225 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.006425, allocations: 47.83 kB / 0.5226 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 6.353e-05/0.006488, allocations: 36.47 kB / 0.5226 GB, free: 15.48 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.00675, allocations: 153.2 kB / 0.5227 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.006755, allocations: 4 kB / 0.5228 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of FrontEnd: time 6.41e-07/0.006756, allocations: 0 / 0.5228 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.00676, allocations: 0 / 0.5228 GB, free: 15.33 MB / 0.4948 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.0007209/0.007481, allocations: 0.4914 MB / 0.5232 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.007513, allocations: 9.75 kB / 0.5232 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.007686, allocations: 32.78 kB / 0.5233 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.008002, allocations: 197.4 kB / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.008013, allocations: 384 / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.008029, allocations: 4.375 kB / 0.5235 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.0083, allocations: 130.9 kB / 0.5236 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.008311, allocations: 4.172 kB / 0.5236 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.008327, allocations: 9.781 kB / 0.5236 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.008335, allocations: 7.938 kB / 0.5236 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.008488, allocations: 35.97 kB / 0.5236 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006164/0.009105, allocations: 376.8 kB / 0.524 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.009231, allocations: 39.05 kB / 0.524 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.631e-05/0.009308, allocations: 23.14 kB / 0.5241 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.009326, allocations: 4 kB / 0.5241 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002464/0.009572, allocations: 143.8 kB / 0.5242 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 7.91e-07/0.009573, allocations: 0 / 0.5242 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0003515/0.009925, allocations: 97.62 kB / 0.5243 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.009988, allocations: 77.11 kB / 0.5244 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.01031, allocations: 298.7 kB / 0.5247 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.01033, allocations: 26.27 kB / 0.5247 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.01048, allocations: 187.3 kB / 0.5249 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.0105, allocations: 11.88 kB / 0.5249 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.01055, allocations: 23.94 kB / 0.5249 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002865/0.01084, allocations: 0.5087 MB / 0.5254 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.342e-05/0.01091, allocations: 12 kB / 0.5254 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.01104, allocations: 81.91 kB / 0.5255 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.0112, allocations: 64.94 kB / 0.5255 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01121, allocations: 0 / 0.5255 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002298/0.01144, allocations: 84.05 kB / 0.5256 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.01145, allocations: 6.656 kB / 0.5256 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.01145, allocations: 0 / 0.5256 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.01147, allocations: 4 kB / 0.5256 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.671e-05/0.01155, allocations: 7.984 kB / 0.5256 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.01156, allocations: 3.938 kB / 0.5256 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.01163, allocations: 10.75 kB / 0.5257 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.01164, allocations: 3.938 kB / 0.5257 GB, free: 12.09 MB / 0.4948 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.0001348/0.01177, allocations: 164.6 kB / 0.5258 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/0.01181, allocations: 23.89 kB / 0.5258 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.01185, allocations: 13.03 kB / 0.5259 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.01185, allocations: 0 / 0.5259 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.01185, allocations: 0 / 0.5259 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.01185, allocations: 1.125 kB / 0.5259 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.01206, allocations: 180.5 kB / 0.526 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.01206, allocations: 0 / 0.526 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.01212, allocations: 4.938 kB / 0.526 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.01213, allocations: 11.92 kB / 0.526 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.01214, allocations: 0.9375 kB / 0.526 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.01214, allocations: 4 kB / 0.526 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01214, allocations: 0 / 0.526 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.0124, allocations: 126 kB / 0.5262 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.405e-05/0.01242, allocations: 11.91 kB / 0.5262 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.01244, allocations: 0 / 0.5262 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.039e-05/0.01251, allocations: 14.42 kB / 0.5262 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.01257, allocations: 7.984 kB / 0.5262 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.0126, allocations: 4 kB / 0.5262 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002002/0.0128, allocations: 209.5 kB / 0.5264 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.0128, allocations: 0 / 0.5264 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002214/0.01302, allocations: 19.94 kB / 0.5264 GB, free: 11.25 MB / 0.4948 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.0002528/0.01327, allocations: 117.9 kB / 0.5265 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.0135, allocations: 59.25 kB / 0.5266 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.0135, allocations: 0 / 0.5266 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.293e-05/0.01359, allocations: 31.84 kB / 0.5266 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.0139, allocations: 44.38 kB / 0.5267 GB, free: 11 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005642/0.01447, allocations: 279.2 kB / 0.5269 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.01458, allocations: 105.4 kB / 0.527 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 6.005e-05/0.01464, allocations: 16.47 kB / 0.527 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.558e-05/0.01469, allocations: 16.5 kB / 0.5271 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of SimCode: time 4.1e-07/0.01469, allocations: 0 / 0.5271 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of Templates: time 0.005637/0.02033, allocations: 1.784 MB / 0.5288 GB, free: 8.902 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.205251605017111]