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.001324/0.001324, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 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.001523/0.001523, allocations: 164.3 kB / 22.46 MB, free: 5.359 MB / 14.72 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.435/1.435, allocations: 177.1 MB / 202.8 MB, free: 9.191 MB / 190.1 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-531:190: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-531:198: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.179/1.179, allocations: 154.5 MB / 413.7 MB, free: 5.293 MB / 382.1 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.784e-06/1.784e-06, allocations: 0 / 0.6185 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.655e-05/2.833e-05, allocations: 5.453 kB / 0.6185 GB, free: 4.699 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003367/0.003395, allocations: 1.648 MB / 0.6201 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.004595, allocations: 0.5805 MB / 0.6207 GB, free: 2.465 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.628e-05/0.004682, allocations: 3.938 kB / 0.6207 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.004883, allocations: 27.78 kB / 0.6207 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.005171, allocations: 67.25 kB / 0.6208 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.005407, allocations: 83.77 kB / 0.6208 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.005632, allocations: 135.5 kB / 0.621 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.005802, allocations: 33.66 kB / 0.621 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.006006, allocations: 79.69 kB / 0.6211 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.006125, allocations: 51.81 kB / 0.6211 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.006157, allocations: 12 kB / 0.6211 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 9.285e-05/0.00625, allocations: 27.97 kB / 0.6212 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.006355, allocations: 39.84 kB / 0.6212 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.216e-05/0.006417, allocations: 39.84 kB / 0.6212 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.00667, allocations: 155.4 kB / 0.6214 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.006674, allocations: 4 kB / 0.6214 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of FrontEnd: time 7.91e-07/0.006675, allocations: 0 / 0.6214 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.00668, allocations: 0 / 0.6214 GB, free: 1.715 MB / 0.5294 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.0006862/0.007366, allocations: 397.3 kB / 0.6218 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.007409, allocations: 12.03 kB / 0.6218 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.00761, allocations: 28.78 kB / 0.6218 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.007983, allocations: 197.1 kB / 0.622 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.007996, allocations: 4.375 kB / 0.622 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.008014, allocations: 8.375 kB / 0.622 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.008376, allocations: 153.6 kB / 0.6222 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.008386, allocations: 192 / 0.6222 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.008403, allocations: 4.375 kB / 0.6222 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.008413, allocations: 7.938 kB / 0.6222 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002451/0.008658, allocations: 59.94 kB / 0.6222 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005988/0.009257, allocations: 308.3 kB / 0.6225 GB, free: 468 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.009414, allocations: 46.48 kB / 0.6226 GB, free: 412 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.009528, allocations: 24.89 kB / 0.6226 GB, free: 384 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.009541, allocations: 0 / 0.6226 GB, free: 384 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000281/0.009822, allocations: 160.4 kB / 0.6227 GB, free: 192 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.009823, allocations: 0 / 0.6227 GB, free: 192 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004896/0.01031, allocations: 117.5 kB / 0.6229 GB, free: 68 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.0104, allocations: 85.09 kB / 0.6229 GB, free: 15.96 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.01065, allocations: 236.1 kB / 0.6232 GB, free: 15.72 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.01068, allocations: 29.7 kB / 0.6232 GB, free: 15.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.89e-05/0.01078, allocations: 132 kB / 0.6233 GB, free: 15.55 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.0108, allocations: 11.91 kB / 0.6233 GB, free: 15.54 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/0.01084, allocations: 13.72 kB / 0.6233 GB, free: 15.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.011, allocations: 334.8 kB / 0.6237 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.01112, allocations: 23.98 kB / 0.6237 GB, free: 15.16 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.01126, allocations: 73.11 kB / 0.6238 GB, free: 15.07 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.01148, allocations: 74.48 kB / 0.6238 GB, free: 14.99 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01149, allocations: 0 / 0.6238 GB, free: 14.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002886/0.01177, allocations: 101.5 kB / 0.6239 GB, free: 14.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.01179, allocations: 8 kB / 0.6239 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.0118, allocations: 3.938 kB / 0.6239 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.01181, allocations: 96 / 0.6239 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.01192, allocations: 15.98 kB / 0.6239 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.01193, allocations: 0 / 0.6239 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.566e-05/0.01201, allocations: 15.92 kB / 0.624 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.01203, allocations: 7.938 kB / 0.624 GB, free: 14.84 MB / 0.545 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.0001159/0.01214, allocations: 126.8 kB / 0.6241 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.369e-05/0.01218, allocations: 15.91 kB / 0.6241 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.401e-05/0.01221, allocations: 21.02 kB / 0.6241 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01221, allocations: 0 / 0.6241 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.01222, allocations: 0 / 0.6241 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.01222, allocations: 4 kB / 0.6241 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.01237, allocations: 149.2 kB / 0.6243 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.01237, allocations: 0 / 0.6243 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-05/0.01245, allocations: 15.92 kB / 0.6243 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.01246, allocations: 3.984 kB / 0.6243 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.01247, allocations: 0 / 0.6243 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.01247, allocations: 4 kB / 0.6243 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/0.01248, allocations: 4 kB / 0.6243 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003097/0.01279, allocations: 128.9 kB / 0.6244 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.01281, allocations: 7.953 kB / 0.6244 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.01283, allocations: 0 / 0.6244 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-05/0.01291, allocations: 11.98 kB / 0.6244 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.392e-05/0.01295, allocations: 7.984 kB / 0.6245 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.01298, allocations: 4 kB / 0.6245 GB, free: 14.29 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001686/0.01314, allocations: 177.6 kB / 0.6246 GB, free: 14.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.01314, allocations: 3.938 kB / 0.6246 GB, free: 14.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002158/0.01336, allocations: 23.95 kB / 0.6247 GB, free: 14.09 MB / 0.545 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.0002495/0.01361, allocations: 123 kB / 0.6248 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003183/0.01393, allocations: 55.88 kB / 0.6248 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01393, allocations: 4.188 kB / 0.6248 GB, free: 13.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.01405, allocations: 35.95 kB / 0.6249 GB, free: 13.87 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.01433, allocations: 41.53 kB / 0.6249 GB, free: 13.82 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006047/0.01494, allocations: 282.6 kB / 0.6252 GB, free: 13.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.01506, allocations: 110.2 kB / 0.6253 GB, free: 13.39 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.384e-05/0.01512, allocations: 16.48 kB / 0.6253 GB, free: 13.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.01516, allocations: 12.5 kB / 0.6253 GB, free: 13.37 MB / 0.545 GB Notification: Performance of SimCode: time 4.81e-07/0.01516, allocations: 4 kB / 0.6253 GB, free: 13.36 MB / 0.545 GB Notification: Performance of Templates: time 0.006286/0.02145, allocations: 1.753 MB / 0.627 GB, free: 11.66 MB / 0.545 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=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.704431913793087] Failed to read output from testmodel.py, exit status != 0: 0.02990163117647171 0.044019495000000006 0.034312097 Calling exit ...