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.001041/0.001041, allocations: 115.2 kB / 16.37 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.001028/0.001028, allocations: 192.6 kB / 17.31 MB, free: 5.613 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7781/0.7781, allocations: 135.1 MB / 426.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.91 kB / 0.5068 GB, free: 7.664 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.31, allocations: 80.91 MB / 0.5858 GB, free: 25.33 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002811/0.3129, allocations: 1.627 MB / 0.5874 GB, free: 24.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009546/0.3139, allocations: 0.5516 MB / 0.5879 GB, free: 23.63 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.314, allocations: 3.906 kB / 0.5879 GB, free: 23.63 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.3142, allocations: 22.42 kB / 0.5879 GB, free: 23.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.3145, allocations: 65.17 kB / 0.588 GB, free: 23.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.3147, allocations: 64.47 kB / 0.588 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.3149, allocations: 137.8 kB / 0.5882 GB, free: 23.44 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.3151, allocations: 48.64 kB / 0.5882 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.3153, allocations: 50.5 kB / 0.5883 GB, free: 23.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.3154, allocations: 67.25 kB / 0.5883 GB, free: 23.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.492e-05/0.3154, allocations: 8.031 kB / 0.5883 GB, free: 23.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.753e-05/0.3155, allocations: 20.16 kB / 0.5884 GB, free: 23.33 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.992e-05/0.3156, allocations: 49.09 kB / 0.5884 GB, free: 23.3 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.593e-05/0.3157, allocations: 55.86 kB / 0.5885 GB, free: 23.26 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.3159, allocations: 151.2 kB / 0.5886 GB, free: 23.15 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.316, allocations: 4.484 kB / 0.5886 GB, free: 23.15 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.316, allocations: 0 / 0.5886 GB, free: 23.15 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.546e-05/0.316, allocations: 1.25 kB / 0.5886 GB, free: 23.15 MB / 446.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.0005837/0.3166, allocations: 464.5 kB / 0.5891 GB, free: 22.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3166, allocations: 9.234 kB / 0.5891 GB, free: 22.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.23e-05/0.3167, allocations: 21.62 kB / 0.5891 GB, free: 22.69 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.317, allocations: 238.4 kB / 0.5893 GB, free: 22.44 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.317, allocations: 7 kB / 0.5893 GB, free: 22.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.317, allocations: 6 kB / 0.5893 GB, free: 22.44 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.3173, allocations: 115.9 kB / 0.5894 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3173, allocations: 3.094 kB / 0.5894 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.3173, allocations: 4 kB / 0.5894 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3173, allocations: 2.594 kB / 0.5894 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.3176, allocations: 60.28 kB / 0.5895 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005027/0.3181, allocations: 393.2 kB / 0.5899 GB, free: 21.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.3182, allocations: 38.45 kB / 0.5899 GB, free: 21.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3183, allocations: 34.45 kB / 0.5899 GB, free: 21.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.3183, allocations: 1.469 kB / 0.5899 GB, free: 21.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.3186, allocations: 95.84 kB / 0.59 GB, free: 21.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.3186, allocations: 0.9688 kB / 0.59 GB, free: 21.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004176/0.319, allocations: 121.3 kB / 0.5902 GB, free: 21.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.319, allocations: 82.2 kB / 0.5902 GB, free: 21.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.3193, allocations: 262.1 kB / 0.5905 GB, free: 21.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.3193, allocations: 25.7 kB / 0.5905 GB, free: 21.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.925e-05/0.3194, allocations: 121.9 kB / 0.5906 GB, free: 21.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.3194, allocations: 9.266 kB / 0.5906 GB, free: 21.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.3194, allocations: 18.34 kB / 0.5906 GB, free: 21.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.3195, allocations: 327.3 kB / 0.591 GB, free: 20.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3196, allocations: 30.88 kB / 0.591 GB, free: 20.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.732e-05/0.3197, allocations: 51.41 kB / 0.591 GB, free: 20.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.3199, allocations: 70.59 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3199, allocations: 0 / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002391/0.3202, allocations: 102.5 kB / 0.5912 GB, free: 20.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3202, allocations: 5.719 kB / 0.5912 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3202, allocations: 9.703 kB / 0.5912 GB, free: 20.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.3202, allocations: 3.938 kB / 0.5912 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.3203, allocations: 11.98 kB / 0.5912 GB, free: 20.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3203, allocations: 0 / 0.5912 GB, free: 20.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.581e-05/0.3204, allocations: 21.17 kB / 0.5913 GB, free: 20.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.3204, allocations: 0 / 0.5913 GB, free: 20.65 MB / 446.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 6.893e-05/0.3205, allocations: 131.3 kB / 0.5914 GB, free: 20.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.3205, allocations: 17.03 kB / 0.5914 GB, free: 20.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.949e-05/0.3206, allocations: 17.25 kB / 0.5914 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3206, allocations: 7.875 kB / 0.5914 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3206, allocations: 0.8438 kB / 0.5914 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3206, allocations: 3.984 kB / 0.5914 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.3207, allocations: 213.6 kB / 0.5916 GB, free: 20.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3207, allocations: 5.219 kB / 0.5916 GB, free: 20.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-05/0.3208, allocations: 11.98 kB / 0.5916 GB, free: 20.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3208, allocations: 9.531 kB / 0.5917 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.3208, allocations: 0 / 0.5917 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3208, allocations: 3.938 kB / 0.5917 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3208, allocations: 0 / 0.5917 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000229/0.3211, allocations: 118.8 kB / 0.5918 GB, free: 20.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.3211, allocations: 94.47 kB / 0.5919 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.3211, allocations: 0 / 0.5919 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.958e-05/0.3212, allocations: 11.92 kB / 0.5919 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.3213, allocations: 11.61 kB / 0.5919 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.3213, allocations: 4 kB / 0.5919 GB, free: 19.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001339/0.3214, allocations: 188.5 kB / 0.5921 GB, free: 19.74 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3214, allocations: 0 / 0.5921 GB, free: 19.74 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.3217, allocations: 23.91 kB / 0.5921 GB, free: 19.71 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.000179/0.3218, allocations: 117.7 kB / 0.5922 GB, free: 19.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002532/0.3221, allocations: 60.81 kB / 0.5923 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3221, allocations: 4 kB / 0.5923 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.821e-05/0.3222, allocations: 25.38 kB / 0.5923 GB, free: 19.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.3225, allocations: 46.31 kB / 0.5923 GB, free: 19.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004089/0.3229, allocations: 286.5 kB / 0.5926 GB, free: 19.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.323, allocations: 0.7203 MB / 0.5933 GB, free: 18.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.064e-05/0.3231, allocations: 13.08 kB / 0.5933 GB, free: 18.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.345e-05/0.3232, allocations: 17.03 kB / 0.5933 GB, free: 18.39 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3232, allocations: 0 / 0.5933 GB, free: 18.39 MB / 446.1 MB Notification: Performance of Templates: time 0.004082/0.3272, allocations: 1.768 MB / 0.5951 GB, free: 16.69 MB / 446.1 MB 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)