Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03819/0.03819, allocations: 9.135 MB / 28.99 MB, free: 0.7969 MB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] 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.0008313/0.0008313, allocations: 95.03 kB / 35.33 MB, free: 1.059 MB / 24.77 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.0009599/0.0009599, allocations: 161 kB / 38.73 MB, free: 2.504 MB / 24.77 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.9862/0.9862, allocations: 177.1 MB / 219.2 MB, free: 10.12 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo): time 0.004074/0.004074, allocations: 0.8224 MB / 276.5 MB, free: 0.7461 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo): time 1.594/1.594, allocations: 274.9 MB / 0.5419 GB, free: 0.6562 MB / 0.4949 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo) Using package SDF with version 0.4.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/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) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Running command: translateModel(AixLib.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter") translateModel(AixLib.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 0.6378 GB, free: 14.19 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.607e-05/1.772e-05, allocations: 2.312 kB / 0.6378 GB, free: 14.19 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.IO.Files.Examples.JSONWriter): time 0.002271/0.002289, allocations: 1.7 MB / 0.6395 GB, free: 12.47 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0007711/0.00306, allocations: 0.6191 MB / 0.6401 GB, free: 11.85 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.776e-05/0.003128, allocations: 3.938 kB / 0.6401 GB, free: 11.84 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.003279, allocations: 19.8 kB / 0.6401 GB, free: 11.82 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.003467, allocations: 67.61 kB / 0.6402 GB, free: 11.76 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.003619, allocations: 71.84 kB / 0.6402 GB, free: 11.69 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.003794, allocations: 143.5 kB / 0.6404 GB, free: 11.55 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.003908, allocations: 38.25 kB / 0.6404 GB, free: 11.5 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.004048, allocations: 79.75 kB / 0.6405 GB, free: 11.43 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 7.737e-05/0.004126, allocations: 55.81 kB / 0.6406 GB, free: 11.37 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.004146, allocations: 8 kB / 0.6406 GB, free: 11.36 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 5.364e-05/0.004199, allocations: 23.98 kB / 0.6406 GB, free: 11.34 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 6.535e-05/0.004265, allocations: 43.83 kB / 0.6406 GB, free: 11.3 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.004297, allocations: 31.91 kB / 0.6407 GB, free: 11.27 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.00444, allocations: 131.4 kB / 0.6408 GB, free: 11.14 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.353e-06/0.004441, allocations: 0 / 0.6408 GB, free: 11.14 MB / 0.6043 GB Notification: Performance of FrontEnd: time 6.51e-07/0.004442, allocations: 0 / 0.6408 GB, free: 11.14 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.006e-06/0.004445, allocations: 0 / 0.6408 GB, free: 11.14 MB / 0.6043 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.0003503/0.004795, allocations: 356 kB / 0.6411 GB, free: 10.77 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.004828, allocations: 15.98 kB / 0.6411 GB, free: 10.75 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.004931, allocations: 28.91 kB / 0.6412 GB, free: 10.72 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.005112, allocations: 193 kB / 0.6413 GB, free: 10.51 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.295e-06/0.00512, allocations: 8.375 kB / 0.6414 GB, free: 10.5 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.005133, allocations: 4.375 kB / 0.6414 GB, free: 10.5 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.005267, allocations: 133.2 kB / 0.6415 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.005274, allocations: 4.172 kB / 0.6415 GB, free: 10.34 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.005282, allocations: 8.375 kB / 0.6415 GB, free: 10.33 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.005288, allocations: 3.938 kB / 0.6415 GB, free: 10.33 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.38e-05/0.005311, allocations: 15.92 kB / 0.6415 GB, free: 10.31 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002495/0.005561, allocations: 221.8 kB / 0.6417 GB, free: 10.08 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 3.461e-05/0.005596, allocations: 18.52 kB / 0.6417 GB, free: 10.05 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.418e-05/0.00561, allocations: 8.922 kB / 0.6418 GB, free: 10.04 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.005621, allocations: 0 / 0.6418 GB, free: 10.04 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.907e-05/0.00571, allocations: 120.5 kB / 0.6419 GB, free: 9.891 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=3): time 5e-07/0.00571, allocations: 0 / 0.6419 GB, free: 9.891 MB / 0.6043 GB Notification: Performance of matching and sorting (n=3): time 9.953e-05/0.00581, allocations: 53.61 kB / 0.6419 GB, free: 9.832 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.647e-05/0.005906, allocations: 77.11 kB / 0.642 GB, free: 9.738 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.006016, allocations: 209 kB / 0.6422 GB, free: 9.52 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.006028, allocations: 33.7 kB / 0.6422 GB, free: 9.48 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.006065, allocations: 112.5 kB / 0.6423 GB, free: 9.367 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.00608, allocations: 7.938 kB / 0.6423 GB, free: 9.359 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.325e-05/0.006103, allocations: 13.72 kB / 0.6424 GB, free: 9.34 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 7.292e-05/0.006176, allocations: 338.7 kB / 0.6427 GB, free: 9 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.377e-06/0.006186, allocations: 4 kB / 0.6427 GB, free: 8.996 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.696e-05/0.006213, allocations: 49.14 kB / 0.6427 GB, free: 8.93 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.382e-05/0.006247, allocations: 37.36 kB / 0.6428 GB, free: 8.883 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.006248, allocations: 0 / 0.6428 GB, free: 8.883 MB / 0.6043 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.419e-05/0.006302, allocations: 49.62 kB / 0.6428 GB, free: 8.828 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 8.777e-06/0.006311, allocations: 4 kB / 0.6428 GB, free: 8.824 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-06/0.006314, allocations: 0 / 0.6428 GB, free: 8.824 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.006327, allocations: 4 kB / 0.6428 GB, free: 8.82 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.165e-05/0.006378, allocations: 7.984 kB / 0.6428 GB, free: 8.812 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.816e-06/0.006381, allocations: 4.094 kB / 0.6428 GB, free: 8.809 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.236e-05/0.006413, allocations: 11.94 kB / 0.6428 GB, free: 8.797 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.006419, allocations: 3.938 kB / 0.6428 GB, free: 8.793 MB / 0.6043 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 5.79e-05/0.006477, allocations: 128.5 kB / 0.643 GB, free: 8.656 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.006487, allocations: 4 kB / 0.643 GB, free: 8.652 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.165e-05/0.006509, allocations: 21.02 kB / 0.643 GB, free: 8.637 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.00651, allocations: 0 / 0.643 GB, free: 8.637 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.006511, allocations: 0 / 0.643 GB, free: 8.637 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.006513, allocations: 0 / 0.643 GB, free: 8.637 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.084e-05/0.006584, allocations: 109.7 kB / 0.6431 GB, free: 8.512 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.006585, allocations: 0 / 0.6431 GB, free: 8.512 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.078e-05/0.006606, allocations: 15.98 kB / 0.6431 GB, free: 8.496 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.62e-07/0.006606, allocations: 0 / 0.6431 GB, free: 8.496 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-06/0.00661, allocations: 0 / 0.6431 GB, free: 8.496 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.006612, allocations: 4 kB / 0.6431 GB, free: 8.492 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.006613, allocations: 4.266 kB / 0.6431 GB, free: 8.488 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.097e-05/0.006674, allocations: 80.97 kB / 0.6432 GB, free: 8.391 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 9.248e-06/0.006683, allocations: 7.953 kB / 0.6432 GB, free: 8.383 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.006695, allocations: 4 kB / 0.6432 GB, free: 8.379 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.526e-05/0.00672, allocations: 7.984 kB / 0.6432 GB, free: 8.371 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.006745, allocations: 7.984 kB / 0.6432 GB, free: 8.363 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.006758, allocations: 8 kB / 0.6432 GB, free: 8.355 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 4.906e-05/0.006807, allocations: 73.98 kB / 0.6433 GB, free: 8.281 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006807, allocations: 0 / 0.6433 GB, free: 8.281 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.00011/0.006917, allocations: 19.95 kB / 0.6433 GB, free: 8.262 MB / 0.6043 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.0001352/0.007053, allocations: 96.23 kB / 0.6434 GB, free: 8.16 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 6.037e-05/0.007113, allocations: 24.78 kB / 0.6434 GB, free: 8.133 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.007119, allocations: 11.98 kB / 0.6434 GB, free: 8.121 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 1.502e-05/0.007134, allocations: 8.859 kB / 0.6435 GB, free: 8.109 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.007259, allocations: 44.62 kB / 0.6435 GB, free: 8.062 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004192/0.007678, allocations: 263.2 kB / 0.6437 GB, free: 7.773 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.365e-05/0.007712, allocations: 71.33 kB / 0.6438 GB, free: 7.684 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 3.321e-05/0.007745, allocations: 16.67 kB / 0.6438 GB, free: 7.668 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.007817, allocations: 75.28 kB / 0.6439 GB, free: 7.594 MB / 0.6043 GB Notification: Performance of SimCode: time 3.91e-07/0.007817, allocations: 0 / 0.6439 GB, free: 7.594 MB / 0.6043 GB Notification: Performance of Templates: time 0.003301/0.01112, allocations: 1.827 MB / 0.6457 GB, free: 5.773 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.sim & ./AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS > AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.236789440736175]