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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7184/0.7184, allocations: 132.2 MB / 422.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 64.7 kB / 0.5018 GB, free: 3.844 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3751, allocations: 80.2 MB / 0.5801 GB, free: 4.547 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002902/0.3781, allocations: 1.641 MB / 0.5817 GB, free: 3.402 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000813/0.3789, allocations: 0.546 MB / 0.5822 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.379, allocations: 2.062 kB / 0.5822 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.3792, allocations: 27 kB / 0.5822 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.3794, allocations: 59.61 kB / 0.5823 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.3796, allocations: 70.47 kB / 0.5824 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.3798, allocations: 128.9 kB / 0.5825 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.3799, allocations: 46.12 kB / 0.5825 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3801, allocations: 58.11 kB / 0.5826 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.3802, allocations: 67.84 kB / 0.5827 GB, free: 2.785 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.3802, allocations: 7.875 kB / 0.5827 GB, free: 2.785 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.434e-05/0.3803, allocations: 22.2 kB / 0.5827 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.716e-05/0.3804, allocations: 48.33 kB / 0.5827 GB, free: 2.758 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.456e-05/0.3804, allocations: 56.2 kB / 0.5828 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.3807, allocations: 143.4 kB / 0.5829 GB, free: 2.656 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3807, allocations: 0.9375 kB / 0.5829 GB, free: 2.656 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3807, allocations: 0 / 0.5829 GB, free: 2.656 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.3807, allocations: 0 / 0.5829 GB, free: 2.656 MB / 430.1 MB 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.000545/0.3812, allocations: 469.5 kB / 0.5834 GB, free: 2.227 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.3813, allocations: 8.906 kB / 0.5834 GB, free: 2.227 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/0.3813, allocations: 25.81 kB / 0.5834 GB, free: 2.211 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.3816, allocations: 233.8 kB / 0.5836 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.3816, allocations: 4 kB / 0.5836 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.3816, allocations: 7.344 kB / 0.5836 GB, free: 1.977 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.3819, allocations: 112.1 kB / 0.5837 GB, free: 1.922 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3819, allocations: 0 / 0.5837 GB, free: 1.922 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3819, allocations: 4.938 kB / 0.5838 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.3819, allocations: 1.906 kB / 0.5838 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.3822, allocations: 63.02 kB / 0.5838 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005285/0.3827, allocations: 385.6 kB / 0.5842 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.3828, allocations: 40 kB / 0.5842 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.383, allocations: 28.73 kB / 0.5842 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.383, allocations: 0.5625 kB / 0.5842 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.3832, allocations: 97.38 kB / 0.5843 GB, free: 1.473 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3832, allocations: 0 / 0.5843 GB, free: 1.473 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004447/0.3837, allocations: 131.3 kB / 0.5845 GB, free: 1.41 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.3837, allocations: 77.67 kB / 0.5845 GB, free: 1.316 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.384, allocations: 259 kB / 0.5848 GB, free: 1.164 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.384, allocations: 27.69 kB / 0.5848 GB, free: 1.133 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.312e-05/0.3841, allocations: 126.6 kB / 0.5849 GB, free: 1.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.3841, allocations: 9.75 kB / 0.5849 GB, free: 1.012 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.3841, allocations: 14.16 kB / 0.585 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.136e-05/0.3842, allocations: 329 kB / 0.5853 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.3843, allocations: 24.34 kB / 0.5853 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/0.3844, allocations: 50.75 kB / 0.5853 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.3846, allocations: 74.41 kB / 0.5854 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3847, allocations: 3.938 kB / 0.5854 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002692/0.3849, allocations: 100.6 kB / 0.5855 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.3849, allocations: 6.219 kB / 0.5855 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.385, allocations: 0.75 kB / 0.5855 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.385, allocations: 6.125 kB / 0.5855 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.3851, allocations: 19.27 kB / 0.5855 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3851, allocations: 2.094 kB / 0.5855 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.142e-05/0.3852, allocations: 17.22 kB / 0.5856 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.3852, allocations: 6.562 kB / 0.5856 GB, free: 0.5156 MB / 430.1 MB 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.692e-05/0.3853, allocations: 127.7 kB / 0.5857 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.3853, allocations: 17.56 kB / 0.5857 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.416e-05/0.3854, allocations: 21.61 kB / 0.5857 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.3854, allocations: 3.938 kB / 0.5857 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3854, allocations: 5.125 kB / 0.5857 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3854, allocations: 0.6562 kB / 0.5857 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.3855, allocations: 213.1 kB / 0.5859 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3855, allocations: 0 / 0.5859 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.254e-05/0.3856, allocations: 12.17 kB / 0.586 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3856, allocations: 0 / 0.586 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3856, allocations: 0.625 kB / 0.586 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3857, allocations: 5.125 kB / 0.586 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3857, allocations: 0.7188 kB / 0.586 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.3859, allocations: 129.5 kB / 0.5861 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.956e-05/0.386, allocations: 86.55 kB / 0.5862 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.386, allocations: 4.656 kB / 0.5862 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.3861, allocations: 13.22 kB / 0.5862 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.3862, allocations: 5.125 kB / 0.5862 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.3862, allocations: 5 kB / 0.5862 GB, free: 15.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.3864, allocations: 194.7 kB / 0.5864 GB, free: 15.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3864, allocations: 0 / 0.5864 GB, free: 15.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002236/0.3867, allocations: 22.28 kB / 0.5864 GB, free: 15.84 MB / 446.1 MB 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.000232/0.3869, allocations: 123.1 kB / 0.5865 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003028/0.3872, allocations: 67.28 kB / 0.5866 GB, free: 15.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3872, allocations: 0.9375 kB / 0.5866 GB, free: 15.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.3873, allocations: 27.47 kB / 0.5866 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.3876, allocations: 44.94 kB / 0.5866 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005818/0.3882, allocations: 282.3 kB / 0.5869 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.3886, allocations: 0.72 MB / 0.5876 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.034e-05/0.3886, allocations: 15.38 kB / 0.5876 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.937e-05/0.3887, allocations: 15.53 kB / 0.5877 GB, free: 14.8 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3887, allocations: 0 / 0.5877 GB, free: 14.8 MB / 446.1 MB Notification: Performance of Templates: time 0.005375/0.3941, allocations: 1.763 MB / 0.5894 GB, free: 14.61 MB / 446.1 MB 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)