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.001452/0.001452, allocations: 93.06 kB / 19.65 MB, free: 280 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.001186/0.001186, allocations: 173 kB / 23.02 MB, free: 1.551 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.9826/0.9826, allocations: 177.2 MB / 203.4 MB, free: 5.633 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.8492/0.8492, allocations: 154.9 MB / 414.8 MB, free: 412 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.493e-06/1.493e-06, allocations: 0 / 0.5207 GB, free: 1.812 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.298e-05, allocations: 2.859 kB / 0.5207 GB, free: 1.809 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002366/0.002389, allocations: 1.696 MB / 0.5223 GB, free: 128 kB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.003207, allocations: 0.5892 MB / 0.5229 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.786e-05/0.003305, allocations: 8.906 kB / 0.5229 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.003493, allocations: 35.7 kB / 0.5229 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.003722, allocations: 68.61 kB / 0.523 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.003925, allocations: 72.75 kB / 0.5231 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.004101, allocations: 143.4 kB / 0.5232 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.004256, allocations: 35.22 kB / 0.5232 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.004456, allocations: 79.8 kB / 0.5233 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.004564, allocations: 43.89 kB / 0.5234 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.00459, allocations: 8 kB / 0.5234 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 7.669e-05/0.004666, allocations: 36.47 kB / 0.5234 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.095e-05/0.004747, allocations: 44.55 kB / 0.5234 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 4.702e-05/0.004794, allocations: 31.86 kB / 0.5235 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.004992, allocations: 116.7 kB / 0.5236 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.004994, allocations: 0 / 0.5236 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.232e-06/0.004995, allocations: 0 / 0.5236 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.005001, allocations: 4.609 kB / 0.5236 GB, free: 14.82 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.0005039/0.005505, allocations: 0.4897 MB / 0.5241 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.005541, allocations: 8.031 kB / 0.5241 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.005685, allocations: 32.78 kB / 0.5241 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.005909, allocations: 193.7 kB / 0.5243 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.005921, allocations: 8.359 kB / 0.5243 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.005933, allocations: 4.375 kB / 0.5243 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.006116, allocations: 138.4 kB / 0.5244 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.006124, allocations: 4.188 kB / 0.5244 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.006137, allocations: 4.375 kB / 0.5244 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.006149, allocations: 4.562 kB / 0.5244 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.658e-05/0.006186, allocations: 8 kB / 0.5245 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.006647, allocations: 360.2 kB / 0.5248 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.146e-05/0.006699, allocations: 28.53 kB / 0.5248 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.601e-05/0.006725, allocations: 11.69 kB / 0.5248 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.00674, allocations: 4.062 kB / 0.5248 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.006881, allocations: 133 kB / 0.525 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.006882, allocations: 0 / 0.525 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0001753/0.007058, allocations: 57.58 kB / 0.525 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.007098, allocations: 81.11 kB / 0.5251 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.007266, allocations: 270.3 kB / 0.5254 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.007286, allocations: 29.7 kB / 0.5254 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.007361, allocations: 182.7 kB / 0.5256 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.007381, allocations: 3.953 kB / 0.5256 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.007415, allocations: 23.38 kB / 0.5256 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.007553, allocations: 0.504 MB / 0.5261 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.97e-05/0.007573, allocations: 3.984 kB / 0.5261 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.076e-05/0.007613, allocations: 64.39 kB / 0.5261 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.821e-05/0.007662, allocations: 36.12 kB / 0.5262 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.007665, allocations: 0.5312 kB / 0.5262 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.085e-05/0.007756, allocations: 67.34 kB / 0.5262 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.007769, allocations: 8 kB / 0.5262 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.007774, allocations: 0 / 0.5262 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.007787, allocations: 0 / 0.5262 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.609e-05/0.007873, allocations: 18.08 kB / 0.5263 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.007878, allocations: 0 / 0.5263 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.961e-05/0.007918, allocations: 7.938 kB / 0.5263 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.007927, allocations: 7.938 kB / 0.5263 GB, free: 11.8 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.0002122/0.008139, allocations: 156.6 kB / 0.5264 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.008157, allocations: 22.66 kB / 0.5264 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.008188, allocations: 17.03 kB / 0.5265 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.00819, allocations: 0 / 0.5265 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.008195, allocations: 0 / 0.5265 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.008198, allocations: 3.984 kB / 0.5265 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.008307, allocations: 164.5 kB / 0.5266 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008308, allocations: 0 / 0.5266 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.182e-05/0.00834, allocations: 13.48 kB / 0.5266 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.008341, allocations: 0 / 0.5266 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.008349, allocations: 0 / 0.5266 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.00835, allocations: 0 / 0.5266 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.008352, allocations: 0.9375 kB / 0.5266 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.694e-05/0.008449, allocations: 100.2 kB / 0.5267 GB, free: 11.26 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.232e-05/0.008461, allocations: 11.91 kB / 0.5267 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.008476, allocations: 4.938 kB / 0.5268 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.741e-05/0.008504, allocations: 7.984 kB / 0.5268 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.825e-05/0.008542, allocations: 0.6562 kB / 0.5268 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.00856, allocations: 11.92 kB / 0.5268 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 8.973e-05/0.00865, allocations: 190.4 kB / 0.527 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.00865, allocations: 0 / 0.527 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001511/0.008801, allocations: 26.72 kB / 0.527 GB, free: 11.02 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.0001917/0.008993, allocations: 115.2 kB / 0.5271 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001102/0.009103, allocations: 35 kB / 0.5271 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.009105, allocations: 0 / 0.5271 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.207e-05/0.009127, allocations: 19.67 kB / 0.5271 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.009351, allocations: 40.66 kB / 0.5272 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000586/0.009937, allocations: 274.6 kB / 0.5274 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.157e-05/0.009988, allocations: 79.27 kB / 0.5275 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.104e-05/0.01004, allocations: 16.47 kB / 0.5275 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.01008, allocations: 20.48 kB / 0.5276 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of SimCode: time 7.61e-07/0.01008, allocations: 0 / 0.5276 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of Templates: time 0.004019/0.0141, allocations: 1.898 MB / 0.5294 GB, free: 8.633 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.833964018151164]