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.001388/0.001388, allocations: 69.98 kB / 20.65 MB, free: 3.848 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.001527/0.001527, allocations: 173 kB / 24.06 MB, free: 452 kB / 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.045/1.045, allocations: 177.1 MB / 204.5 MB, free: 5.105 MB / 186.7 MB " [Timeout remaining time 179] 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 0.7633/0.7633, allocations: 154.9 MB / 415.9 MB, free: 212 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 179] 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.783e-06/1.783e-06, allocations: 3.938 kB / 0.5219 GB, free: 1.531 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.792e-05/2.971e-05, allocations: 2.312 kB / 0.5219 GB, free: 1.527 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003268/0.003298, allocations: 1.669 MB / 0.5235 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.0007949/0.004092, allocations: 0.5977 MB / 0.5241 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.396e-05/0.004176, allocations: 9.75 kB / 0.5241 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.004315, allocations: 19.8 kB / 0.5241 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.004497, allocations: 71.61 kB / 0.5242 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.004635, allocations: 77.38 kB / 0.5242 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.00477, allocations: 135.5 kB / 0.5244 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.004883, allocations: 33.66 kB / 0.5244 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.00502, allocations: 83.73 kB / 0.5245 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.282e-05/0.005092, allocations: 52.56 kB / 0.5245 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.005111, allocations: 8 kB / 0.5245 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.386e-05/0.005165, allocations: 33.33 kB / 0.5246 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.952e-05/0.005225, allocations: 43.83 kB / 0.5246 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.005256, allocations: 31.86 kB / 0.5246 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.005398, allocations: 124.8 kB / 0.5248 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.005402, allocations: 0 / 0.5248 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.473e-06/0.005403, allocations: 0 / 0.5248 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.005407, allocations: 0 / 0.5248 GB, free: 14.56 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.0004407/0.005848, allocations: 492.8 kB / 0.5252 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.005882, allocations: 12.03 kB / 0.5252 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.006007, allocations: 35.56 kB / 0.5253 GB, free: 14 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.006348, allocations: 199.9 kB / 0.5255 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.006363, allocations: 4.375 kB / 0.5255 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.006377, allocations: 4.375 kB / 0.5255 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.006575, allocations: 130.9 kB / 0.5256 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.006583, allocations: 4.75 kB / 0.5256 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.006593, allocations: 4.312 kB / 0.5256 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.006599, allocations: 4.906 kB / 0.5256 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.846e-05/0.006628, allocations: 14.73 kB / 0.5256 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003925/0.00702, allocations: 325.7 kB / 0.5259 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.537e-05/0.007076, allocations: 27.12 kB / 0.526 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.007095, allocations: 11.69 kB / 0.526 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.007109, allocations: 0 / 0.526 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001395/0.007248, allocations: 128.8 kB / 0.5261 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.007249, allocations: 0 / 0.5261 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0001551/0.007404, allocations: 62.94 kB / 0.5262 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.00744, allocations: 77.11 kB / 0.5262 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.007591, allocations: 258.6 kB / 0.5265 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.007607, allocations: 25.7 kB / 0.5265 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.989e-05/0.007686, allocations: 183.8 kB / 0.5267 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.007706, allocations: 11.95 kB / 0.5267 GB, free: 12.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.007739, allocations: 19.36 kB / 0.5267 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.00787, allocations: 0.5046 MB / 0.5272 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.584e-05/0.007886, allocations: 3.984 kB / 0.5272 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.027e-05/0.007926, allocations: 61.73 kB / 0.5273 GB, free: 11.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.587e-05/0.007972, allocations: 40.31 kB / 0.5273 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.007974, allocations: 0 / 0.5273 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.246e-05/0.008057, allocations: 64.66 kB / 0.5274 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.008071, allocations: 8 kB / 0.5274 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.008076, allocations: 0 / 0.5274 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.657e-06/0.008084, allocations: 3.938 kB / 0.5274 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.709e-05/0.008161, allocations: 11.98 kB / 0.5274 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.008164, allocations: 3.938 kB / 0.5274 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.87e-05/0.008203, allocations: 7.938 kB / 0.5274 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.008209, allocations: 6.781 kB / 0.5274 GB, free: 11.6 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 8.845e-05/0.008298, allocations: 156.5 kB / 0.5276 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.008321, allocations: 23.89 kB / 0.5276 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.008351, allocations: 21.03 kB / 0.5276 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.008353, allocations: 288 / 0.5276 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.008354, allocations: 0 / 0.5276 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.008358, allocations: 0 / 0.5276 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.008459, allocations: 138.4 kB / 0.5277 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.008462, allocations: 3.984 kB / 0.5277 GB, free: 11.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.585e-05/0.008498, allocations: 7.984 kB / 0.5277 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.008499, allocations: 0.5 kB / 0.5277 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-06/0.008504, allocations: 0 / 0.5277 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.008505, allocations: 4.5 kB / 0.5278 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.008506, allocations: 1.969 kB / 0.5278 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.616e-05/0.008602, allocations: 96.22 kB / 0.5278 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.524e-05/0.008617, allocations: 11.91 kB / 0.5279 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.008631, allocations: 3.984 kB / 0.5279 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.778e-05/0.008658, allocations: 4 kB / 0.5279 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.165e-05/0.00869, allocations: 14.42 kB / 0.5279 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.008706, allocations: 4 kB / 0.5279 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.793e-05/0.008784, allocations: 181.5 kB / 0.5281 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9e-08/0.008785, allocations: 0 / 0.5281 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001605/0.008945, allocations: 23.98 kB / 0.5281 GB, free: 10.86 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.0001811/0.009126, allocations: 115.2 kB / 0.5282 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 8.842e-05/0.009215, allocations: 24.64 kB / 0.5282 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.009217, allocations: 0 / 0.5282 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.195e-05/0.009238, allocations: 15.69 kB / 0.5282 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.009459, allocations: 54.45 kB / 0.5283 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005628/0.01002, allocations: 272.7 kB / 0.5285 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.796e-05/0.01006, allocations: 71.33 kB / 0.5286 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.004e-05/0.01011, allocations: 17.69 kB / 0.5286 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.718e-05/0.0102, allocations: 98.17 kB / 0.5287 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of SimCode: time 6.91e-07/0.0102, allocations: 4.594 kB / 0.5287 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of Templates: time 0.003904/0.0141, allocations: 1.949 MB / 0.5306 GB, free: 8.352 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: 3.8065114747732878]