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.005515/0.005515, allocations: 101.7 kB / 15.73 MB, free: 5.969 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.001325/0.001325, allocations: 195.6 kB / 16.67 MB, free: 5.906 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.007/1.007, allocations: 135.1 MB / 425.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 63.89 kB / 0.5856 GB, free: 3.395 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4174/0.4188, allocations: 80.91 MB / 0.6646 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002313/0.4212, allocations: 1.64 MB / 0.6662 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007284/0.4219, allocations: 0.5335 MB / 0.6667 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.666e-05/0.422, allocations: 8.062 kB / 0.6667 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.4222, allocations: 25.11 kB / 0.6668 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.4225, allocations: 72.17 kB / 0.6668 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001659/0.4226, allocations: 67.22 kB / 0.6669 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.4228, allocations: 138.9 kB / 0.667 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.423, allocations: 50.34 kB / 0.6671 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.4231, allocations: 52.66 kB / 0.6671 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.591e-05/0.4232, allocations: 64.09 kB / 0.6672 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.4232, allocations: 7.125 kB / 0.6672 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.503e-05/0.4233, allocations: 19.77 kB / 0.6672 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.775e-05/0.4234, allocations: 48.77 kB / 0.6673 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.4234, allocations: 56.33 kB / 0.6673 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.4236, allocations: 155.7 kB / 0.6675 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.4236, allocations: 0 / 0.6675 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4236, allocations: 0 / 0.6675 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.4236, allocations: 4.906 kB / 0.6675 GB, free: 5.375 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.0005238/0.4242, allocations: 455.3 kB / 0.6679 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.4242, allocations: 9.469 kB / 0.6679 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.613e-05/0.4243, allocations: 17.97 kB / 0.6679 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.4245, allocations: 249.7 kB / 0.6682 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.4245, allocations: 9.859 kB / 0.6682 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.4245, allocations: 8.875 kB / 0.6682 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.4248, allocations: 104.9 kB / 0.6683 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.4248, allocations: 3.938 kB / 0.6683 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.4248, allocations: 1.062 kB / 0.6683 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.4248, allocations: 1.375 kB / 0.6683 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.4251, allocations: 67.28 kB / 0.6684 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000493/0.4256, allocations: 376.6 kB / 0.6687 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.4257, allocations: 44.8 kB / 0.6688 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.4258, allocations: 29.55 kB / 0.6688 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.4258, allocations: 5.219 kB / 0.6688 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/0.426, allocations: 93.77 kB / 0.6689 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.426, allocations: 0 / 0.6689 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004099/0.4265, allocations: 131.7 kB / 0.669 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.4265, allocations: 78.27 kB / 0.6691 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.4267, allocations: 252.1 kB / 0.6693 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.4267, allocations: 27.17 kB / 0.6694 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.932e-05/0.4268, allocations: 129 kB / 0.6695 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.4268, allocations: 13.08 kB / 0.6695 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.119e-05/0.4269, allocations: 12.69 kB / 0.6695 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.339e-05/0.4269, allocations: 335.6 kB / 0.6698 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.427, allocations: 24.7 kB / 0.6698 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.4271, allocations: 47.94 kB / 0.6699 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.4273, allocations: 75.14 kB / 0.67 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4273, allocations: 1.375 kB / 0.67 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002654/0.4276, allocations: 101.9 kB / 0.6701 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.4276, allocations: 5.5 kB / 0.6701 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.4276, allocations: 384 / 0.6701 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.4277, allocations: 9.406 kB / 0.6701 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.4278, allocations: 11.73 kB / 0.6701 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.4278, allocations: 5.5 kB / 0.6701 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.419e-05/0.4279, allocations: 15.17 kB / 0.6701 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.4279, allocations: 1.5 kB / 0.6701 GB, free: 2.984 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 7.55e-05/0.428, allocations: 132.4 kB / 0.6702 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.115e-05/0.428, allocations: 15.44 kB / 0.6702 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.4281, allocations: 23.77 kB / 0.6703 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4281, allocations: 7.875 kB / 0.6703 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4281, allocations: 1.344 kB / 0.6703 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.4281, allocations: 0 / 0.6703 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.4282, allocations: 214.9 kB / 0.6705 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4282, allocations: 1.25 kB / 0.6705 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.916e-05/0.4283, allocations: 10.45 kB / 0.6705 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.4283, allocations: 5.156 kB / 0.6705 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.4283, allocations: 0 / 0.6705 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4283, allocations: 5.406 kB / 0.6705 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4283, allocations: 7.938 kB / 0.6705 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.4286, allocations: 120.1 kB / 0.6706 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.808e-05/0.4286, allocations: 92.36 kB / 0.6707 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.4287, allocations: 1.5 kB / 0.6707 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.562e-05/0.4287, allocations: 14.02 kB / 0.6707 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.889e-05/0.4288, allocations: 5.5 kB / 0.6707 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.4288, allocations: 8.422 kB / 0.6707 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001414/0.429, allocations: 192.6 kB / 0.6709 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.429, allocations: 0 / 0.6709 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002355/0.4292, allocations: 24.98 kB / 0.6709 GB, free: 2.207 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.0001764/0.4294, allocations: 110.4 kB / 0.6711 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002706/0.4297, allocations: 55.41 kB / 0.6711 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4297, allocations: 0.9062 kB / 0.6711 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.4298, allocations: 33.28 kB / 0.6711 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.4301, allocations: 39.39 kB / 0.6712 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004503/0.4306, allocations: 290.4 kB / 0.6715 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.4307, allocations: 0.7201 MB / 0.6722 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.041e-05/0.4308, allocations: 26.53 kB / 0.6722 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.4308, allocations: 13.56 kB / 0.6722 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.4308, allocations: 4 kB / 0.6722 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of Templates: time 0.004388/0.4352, allocations: 1.761 MB / 0.6739 GB, free: 224 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)