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.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005164/0.005164, allocations: 98.38 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 193.3 kB / 16.67 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9602/0.9602, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 0.5856 GB, free: 3.391 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4138, allocations: 80.91 MB / 0.6646 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002829/0.4167, allocations: 1.635 MB / 0.6662 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009064/0.4176, allocations: 0.5415 MB / 0.6667 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.762e-05/0.4177, allocations: 3.156 kB / 0.6667 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.4179, allocations: 29.95 kB / 0.6668 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.4182, allocations: 61.2 kB / 0.6668 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.4184, allocations: 66.75 kB / 0.6669 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.4186, allocations: 145.3 kB / 0.667 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.4187, allocations: 43.22 kB / 0.6671 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.4189, allocations: 57.36 kB / 0.6671 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.419, allocations: 58.86 kB / 0.6672 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.419, allocations: 8.125 kB / 0.6672 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.826e-05/0.4191, allocations: 27.45 kB / 0.6672 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.113e-05/0.4192, allocations: 44.64 kB / 0.6673 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.522e-05/0.4192, allocations: 55.3 kB / 0.6673 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.4194, allocations: 154 kB / 0.6675 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4194, allocations: 0 / 0.6675 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4195, allocations: 0 / 0.6675 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.4195, allocations: 1.219 kB / 0.6675 GB, free: 5.41 MB / 0.4981 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.000548/0.42, allocations: 478 kB / 0.6679 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4201, allocations: 9.156 kB / 0.6679 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.225e-05/0.4201, allocations: 17.25 kB / 0.6679 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.4204, allocations: 244.6 kB / 0.6682 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.4204, allocations: 7.969 kB / 0.6682 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.4205, allocations: 6.875 kB / 0.6682 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.4207, allocations: 109.3 kB / 0.6683 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.4207, allocations: 1.406 kB / 0.6683 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.4208, allocations: 4 kB / 0.6683 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.4208, allocations: 1.656 kB / 0.6683 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.421, allocations: 60.28 kB / 0.6684 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.4215, allocations: 387.1 kB / 0.6687 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.4217, allocations: 33.66 kB / 0.6688 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.4218, allocations: 33.55 kB / 0.6688 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.4218, allocations: 1.469 kB / 0.6688 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002086/0.422, allocations: 113.5 kB / 0.6689 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.422, allocations: 0 / 0.6689 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004281/0.4225, allocations: 116.9 kB / 0.669 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.4225, allocations: 81.09 kB / 0.6691 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.4227, allocations: 256.4 kB / 0.6693 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.4228, allocations: 31.02 kB / 0.6694 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.4228, allocations: 132.4 kB / 0.6695 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.4229, allocations: 5.016 kB / 0.6695 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.4229, allocations: 17.22 kB / 0.6695 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.038e-05/0.423, allocations: 335.6 kB / 0.6698 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.4231, allocations: 21.27 kB / 0.6699 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.4232, allocations: 50.47 kB / 0.6699 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.4234, allocations: 71.86 kB / 0.67 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4234, allocations: 0.9062 kB / 0.67 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002603/0.4237, allocations: 102.1 kB / 0.6701 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.4237, allocations: 9.656 kB / 0.6701 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.4237, allocations: 0 / 0.6701 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.4237, allocations: 9.219 kB / 0.6701 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.4238, allocations: 11.98 kB / 0.6701 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.4239, allocations: 5.312 kB / 0.6701 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.792e-05/0.424, allocations: 11.95 kB / 0.6701 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.424, allocations: 1.5 kB / 0.6701 GB, free: 2.996 MB / 0.4981 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 8.573e-05/0.4241, allocations: 132.2 kB / 0.6702 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.003e-05/0.4241, allocations: 19.3 kB / 0.6703 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.4241, allocations: 19.67 kB / 0.6703 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4241, allocations: 3.938 kB / 0.6703 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4241, allocations: 5.344 kB / 0.6703 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.4242, allocations: 4 kB / 0.6703 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.4243, allocations: 210.9 kB / 0.6705 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4243, allocations: 1.094 kB / 0.6705 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.467e-05/0.4244, allocations: 10.77 kB / 0.6705 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4244, allocations: 1.469 kB / 0.6705 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.4244, allocations: 4 kB / 0.6705 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4244, allocations: 3.938 kB / 0.6705 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4244, allocations: 1.5 kB / 0.6705 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.4247, allocations: 128.4 kB / 0.6706 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.972e-05/0.4247, allocations: 93.03 kB / 0.6707 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.4248, allocations: 0 / 0.6707 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.26e-05/0.4248, allocations: 14.2 kB / 0.6707 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.206e-05/0.4249, allocations: 10.45 kB / 0.6707 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.4249, allocations: 7.531 kB / 0.6708 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001485/0.4251, allocations: 191.7 kB / 0.6709 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4251, allocations: 1.406 kB / 0.6709 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002229/0.4253, allocations: 20.44 kB / 0.671 GB, free: 2.219 MB / 0.4981 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.0002082/0.4255, allocations: 111.4 kB / 0.6711 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000283/0.4258, allocations: 68.23 kB / 0.6711 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4258, allocations: 0 / 0.6711 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.4259, allocations: 24.34 kB / 0.6712 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.4262, allocations: 49.38 kB / 0.6712 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004855/0.4267, allocations: 288.2 kB / 0.6715 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.4269, allocations: 0.7209 MB / 0.6722 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.494e-05/0.427, allocations: 14.05 kB / 0.6722 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.427, allocations: 22.23 kB / 0.6722 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of SimCode: time 2.9e-07/0.427, allocations: 1.25 kB / 0.6722 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of Templates: time 0.004829/0.4319, allocations: 1.773 MB / 0.6739 GB, free: 216 kB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (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)