Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6847/0.6847, allocations: 130.5 MB / 143.8 MB, free: 13.58 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.558/1.558, allocations: 221.3 MB / 396.8 MB, free: 9.176 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009708/0.0009711, allocations: 101.1 kB / 479 MB, free: 10.41 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.421e-05/4.433e-05, allocations: 3.594 kB / 0.5551 GB, free: 86.13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1708, allocations: 81.58 MB / 0.6347 GB, free: 12.05 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6277/0.7985, allocations: 112.9 MB / 0.745 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.7988, allocations: 79.89 kB / 0.7451 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.008618/0.8074, allocations: 3.338 MB / 0.7484 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8074, allocations: 0 / 0.7484 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.376e-05/0.8075, allocations: 3.844 kB / 0.7484 GB, free: 27.82 MB / 0.5105 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.000458/0.8079, allocations: 435.2 kB / 0.7488 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.808, allocations: 11.53 kB / 0.7488 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.808, allocations: 22.73 kB / 0.7488 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.8083, allocations: 228.7 kB / 0.749 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.8083, allocations: 0 / 0.749 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.8084, allocations: 7.406 kB / 0.7491 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.8086, allocations: 87.25 kB / 0.7491 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.8086, allocations: 0 / 0.7491 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.8086, allocations: 0 / 0.7491 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.8086, allocations: 3.875 kB / 0.7491 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.845e-05/0.8087, allocations: 39.72 kB / 0.7492 GB, free: 27.16 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005688/0.8093, allocations: 392 kB / 0.7496 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 5.803e-05/0.8093, allocations: 30.23 kB / 0.7496 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.8094, allocations: 16 kB / 0.7496 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.8094, allocations: 0 / 0.7496 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.8095, allocations: 81.53 kB / 0.7497 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.8095, allocations: 3.875 kB / 0.7497 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001574/0.8097, allocations: 61.28 kB / 0.7497 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.8098, allocations: 84.92 kB / 0.7498 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.81, allocations: 221.8 kB / 0.75 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.81, allocations: 25.7 kB / 0.7501 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.339e-05/0.8101, allocations: 130.3 kB / 0.7502 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.8101, allocations: 7.406 kB / 0.7502 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-06/0.8101, allocations: 3.875 kB / 0.7502 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.8102, allocations: 326.9 kB / 0.7505 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.368e-05/0.8103, allocations: 10.33 kB / 0.7505 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.187e-05/0.8103, allocations: 38.62 kB / 0.7505 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.999e-05/0.8104, allocations: 14.12 kB / 0.7506 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.8104, allocations: 0 / 0.7506 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.79e-05/0.8105, allocations: 70.55 kB / 0.7506 GB, free: 26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.8105, allocations: 7.719 kB / 0.7506 GB, free: 26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.8105, allocations: 128 / 0.7506 GB, free: 26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.8105, allocations: 4 kB / 0.7506 GB, free: 26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.8106, allocations: 17.39 kB / 0.7507 GB, free: 26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.8107, allocations: 3.875 kB / 0.7507 GB, free: 26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.511e-05/0.8107, allocations: 14.14 kB / 0.7507 GB, free: 26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.8108, allocations: 3.969 kB / 0.7507 GB, free: 26 MB / 0.5105 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.8108, allocations: 112.7 kB / 0.7508 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.8109, allocations: 30.16 kB / 0.7508 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.8109, allocations: 19.19 kB / 0.7508 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.8109, allocations: 0 / 0.7508 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.8109, allocations: 0 / 0.7508 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.8109, allocations: 0 / 0.7508 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.8111, allocations: 216.6 kB / 0.751 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.8111, allocations: 3.938 kB / 0.751 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.893e-05/0.8112, allocations: 14.73 kB / 0.7511 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.8112, allocations: 6.766 kB / 0.7511 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.8112, allocations: 3.953 kB / 0.7511 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.8112, allocations: 3.844 kB / 0.7511 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8112, allocations: 0 / 0.7511 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.8113, allocations: 93.06 kB / 0.7512 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.394e-05/0.8114, allocations: 99.03 kB / 0.7513 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.8114, allocations: 0 / 0.7513 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.755e-05/0.8115, allocations: 22.09 kB / 0.7513 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.681e-05/0.8116, allocations: 6.75 kB / 0.7513 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.8116, allocations: 6.891 kB / 0.7513 GB, free: 25.47 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001425/0.8117, allocations: 178.8 kB / 0.7515 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8117, allocations: 3.938 kB / 0.7515 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000188/0.8119, allocations: 19.25 kB / 0.7515 GB, free: 25.38 MB / 0.5105 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002278/0.8122, allocations: 133 kB / 0.7516 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001002/0.8123, allocations: 19.89 kB / 0.7516 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8123, allocations: 0 / 0.7516 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.898e-05/0.8123, allocations: 16.92 kB / 0.7516 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.8125, allocations: 37.64 kB / 0.7517 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003426/0.8129, allocations: 189.4 kB / 0.7519 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.8132, allocations: 0.7217 MB / 0.7526 GB, free: 24.47 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 6.727e-05/0.8133, allocations: 18.91 kB / 0.7526 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.609e-05/0.8133, allocations: 20.3 kB / 0.7526 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of SimCode: time 3.41e-07/0.8133, allocations: 3.938 kB / 0.7526 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of Templates: time 0.003916/0.8173, allocations: 1.609 MB / 0.7542 GB, free: 24.28 MB / 0.5105 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)