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.0007714/0.0007714, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.0008825/0.0008825, allocations: 169 kB / 23.27 MB, free: 1.223 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.9916/0.9916, allocations: 177.2 MB / 203.7 MB, free: 5.516 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.7673/0.7673, allocations: 154.9 MB / 415.1 MB, free: 268 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 9.82e-07/9.82e-07, allocations: 3.938 kB / 0.5211 GB, free: 1.562 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.485e-05/1.583e-05, allocations: 5.938 kB / 0.5211 GB, free: 1.559 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002001/0.002017, allocations: 1.674 MB / 0.5227 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.0007143/0.002731, allocations: 0.5939 MB / 0.5233 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.711e-05/0.002799, allocations: 9.062 kB / 0.5233 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.002926, allocations: 23.78 kB / 0.5234 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.0031, allocations: 69.05 kB / 0.5234 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.003267, allocations: 79.72 kB / 0.5235 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.003415, allocations: 136.3 kB / 0.5236 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.003541, allocations: 29.67 kB / 0.5237 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.003702, allocations: 84.52 kB / 0.5237 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.342e-05/0.003775, allocations: 55.81 kB / 0.5238 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.003794, allocations: 6.938 kB / 0.5238 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.998e-05/0.003854, allocations: 31.92 kB / 0.5238 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.72e-05/0.003911, allocations: 47.83 kB / 0.5239 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.00394, allocations: 31.84 kB / 0.5239 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.004072, allocations: 119.5 kB / 0.524 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.323e-06/0.004073, allocations: 0 / 0.524 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.11e-07/0.004074, allocations: 4 kB / 0.524 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.685e-06/0.004077, allocations: 0.5 kB / 0.524 GB, free: 14.59 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.0003697/0.004446, allocations: 492.4 kB / 0.5245 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.004477, allocations: 8.031 kB / 0.5245 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.974e-05/0.004576, allocations: 33.62 kB / 0.5245 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.00474, allocations: 201.9 kB / 0.5247 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.004748, allocations: 4.375 kB / 0.5247 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-06/0.004757, allocations: 4.375 kB / 0.5247 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.004881, allocations: 130.8 kB / 0.5249 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.004888, allocations: 0.6875 kB / 0.5249 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.004895, allocations: 4.812 kB / 0.5249 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.004903, allocations: 8.969 kB / 0.5249 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.076e-05/0.004924, allocations: 4 kB / 0.5249 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002798/0.005204, allocations: 328.1 kB / 0.5252 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.337e-05/0.005237, allocations: 32.28 kB / 0.5252 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.397e-05/0.005251, allocations: 7.688 kB / 0.5252 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.005266, allocations: 4.688 kB / 0.5252 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001025/0.005369, allocations: 123.8 kB / 0.5253 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.00537, allocations: 1.438 kB / 0.5253 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0001179/0.005488, allocations: 61.53 kB / 0.5254 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.005517, allocations: 77.11 kB / 0.5255 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.005654, allocations: 262.6 kB / 0.5257 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.005666, allocations: 26.2 kB / 0.5258 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.114e-05/0.005737, allocations: 187.5 kB / 0.5259 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.005753, allocations: 7.938 kB / 0.5259 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.005781, allocations: 20.5 kB / 0.526 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.005893, allocations: 0.5 MB / 0.5264 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.005905, allocations: 4 kB / 0.5264 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.763e-05/0.005942, allocations: 73.61 kB / 0.5265 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.005976, allocations: 36 kB / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.005977, allocations: 0 / 0.5266 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.632e-05/0.006044, allocations: 66.88 kB / 0.5266 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.006054, allocations: 7.938 kB / 0.5266 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.006057, allocations: 0.75 kB / 0.5266 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.00607, allocations: 4 kB / 0.5266 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.135e-05/0.006121, allocations: 5.406 kB / 0.5266 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.006126, allocations: 7.922 kB / 0.5266 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.255e-05/0.006158, allocations: 11.94 kB / 0.5267 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.006164, allocations: 0.625 kB / 0.5267 GB, free: 11.62 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 7.942e-05/0.006244, allocations: 161.6 kB / 0.5268 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.641e-05/0.00626, allocations: 15.91 kB / 0.5268 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.006289, allocations: 21.02 kB / 0.5268 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.006291, allocations: 2.75 kB / 0.5268 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.006297, allocations: 0 / 0.5268 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.0063, allocations: 0 / 0.5268 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.205e-05/0.006392, allocations: 137.1 kB / 0.527 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.006393, allocations: 0 / 0.527 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.375e-05/0.006417, allocations: 11.98 kB / 0.527 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.006418, allocations: 0 / 0.527 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.006424, allocations: 6.531 kB / 0.527 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.006426, allocations: 0 / 0.527 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.006426, allocations: 0 / 0.527 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.551e-05/0.006502, allocations: 92.22 kB / 0.5271 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.17e-05/0.006514, allocations: 11.91 kB / 0.5271 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.006525, allocations: 4 kB / 0.5271 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.637e-05/0.006551, allocations: 11.98 kB / 0.5271 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.395e-05/0.006575, allocations: 4.547 kB / 0.5271 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.006587, allocations: 5.094 kB / 0.5271 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.1e-05/0.006658, allocations: 185.5 kB / 0.5273 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.006658, allocations: 0 / 0.5273 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001303/0.006789, allocations: 17.97 kB / 0.5273 GB, free: 10.9 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.0001689/0.006958, allocations: 123 kB / 0.5274 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 8.111e-05/0.007039, allocations: 24.95 kB / 0.5275 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.00704, allocations: 0 / 0.5275 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.97e-05/0.007059, allocations: 16.28 kB / 0.5275 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001817/0.007241, allocations: 61.36 kB / 0.5275 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004143/0.007655, allocations: 270.9 kB / 0.5278 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.452e-05/0.00769, allocations: 71.33 kB / 0.5279 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.593e-05/0.007726, allocations: 16.47 kB / 0.5279 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.435e-05/0.0078, allocations: 98.17 kB / 0.528 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of SimCode: time 3.61e-07/0.007801, allocations: 6.625 kB / 0.528 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of Templates: time 0.003177/0.01098, allocations: 1.918 MB / 0.5298 GB, free: 8.402 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.601758153643459]