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.001029/0.001029, allocations: 104.1 kB / 16.35 MB, free: 5.828 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.001022/0.001023, allocations: 190.5 kB / 17.29 MB, free: 5.484 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.249/1.249, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7816/0.7816, allocations: 135.1 MB / 426.3 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.88 kB / 0.5067 GB, free: 7.641 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3746, allocations: 80.9 MB / 0.5858 GB, free: 25.51 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002716/0.3774, allocations: 1.639 MB / 0.5874 GB, free: 24.24 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007564/0.3782, allocations: 0.5437 MB / 0.5879 GB, free: 23.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.647e-05/0.3782, allocations: 5.938 kB / 0.5879 GB, free: 23.8 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.3784, allocations: 23.2 kB / 0.5879 GB, free: 23.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.3787, allocations: 70.55 kB / 0.588 GB, free: 23.74 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.3788, allocations: 62.88 kB / 0.588 GB, free: 23.69 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.379, allocations: 129.9 kB / 0.5882 GB, free: 23.62 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.3791, allocations: 49.64 kB / 0.5882 GB, free: 23.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.3792, allocations: 56.91 kB / 0.5883 GB, free: 23.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.3793, allocations: 72.12 kB / 0.5883 GB, free: 23.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.3794, allocations: 7.688 kB / 0.5883 GB, free: 23.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.867e-05/0.3794, allocations: 16.09 kB / 0.5884 GB, free: 23.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.505e-05/0.3795, allocations: 52.62 kB / 0.5884 GB, free: 23.47 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.573e-05/0.3796, allocations: 56.45 kB / 0.5885 GB, free: 23.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.3798, allocations: 146.5 kB / 0.5886 GB, free: 23.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3798, allocations: 0.9062 kB / 0.5886 GB, free: 23.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3798, allocations: 1.5 kB / 0.5886 GB, free: 23.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3798, allocations: 4.516 kB / 0.5886 GB, free: 23.32 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.000527/0.3803, allocations: 462.9 kB / 0.589 GB, free: 22.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.3804, allocations: 11.48 kB / 0.5891 GB, free: 22.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.3804, allocations: 20.19 kB / 0.5891 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.3807, allocations: 244.8 kB / 0.5893 GB, free: 22.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.3807, allocations: 1.75 kB / 0.5893 GB, free: 22.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.3807, allocations: 8.469 kB / 0.5893 GB, free: 22.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.381, allocations: 109.2 kB / 0.5894 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.381, allocations: 2.781 kB / 0.5894 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.381, allocations: 0 / 0.5894 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.381, allocations: 2.531 kB / 0.5894 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.3812, allocations: 63.75 kB / 0.5895 GB, free: 22.51 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.3817, allocations: 386.7 kB / 0.5899 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.3819, allocations: 46.33 kB / 0.5899 GB, free: 22.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.451e-05/0.382, allocations: 31.2 kB / 0.5899 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.382, allocations: 0.6875 kB / 0.5899 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001844/0.3822, allocations: 91.97 kB / 0.59 GB, free: 21.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.843e-06/0.3822, allocations: 0 / 0.59 GB, free: 21.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003641/0.3826, allocations: 136.3 kB / 0.5902 GB, free: 21.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.3826, allocations: 77.11 kB / 0.5902 GB, free: 21.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.3828, allocations: 256.9 kB / 0.5905 GB, free: 21.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.3828, allocations: 25.7 kB / 0.5905 GB, free: 21.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.849e-05/0.3829, allocations: 124.1 kB / 0.5906 GB, free: 21.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.3829, allocations: 12.95 kB / 0.5906 GB, free: 21.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.3829, allocations: 13.72 kB / 0.5906 GB, free: 21.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.262e-05/0.383, allocations: 327.9 kB / 0.591 GB, free: 20.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.486e-05/0.3831, allocations: 24.53 kB / 0.591 GB, free: 20.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.186e-05/0.3832, allocations: 53.38 kB / 0.591 GB, free: 20.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.3834, allocations: 69.28 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3834, allocations: 4 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002242/0.3836, allocations: 99.02 kB / 0.5912 GB, free: 20.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.3836, allocations: 6.375 kB / 0.5912 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3836, allocations: 0 / 0.5912 GB, free: 20.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3836, allocations: 11.92 kB / 0.5912 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.3838, allocations: 23.92 kB / 0.5912 GB, free: 20.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3838, allocations: 0 / 0.5912 GB, free: 20.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.056e-05/0.3839, allocations: 20.42 kB / 0.5913 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.3839, allocations: 2.312 kB / 0.5913 GB, free: 20.64 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 7.373e-05/0.3839, allocations: 126.7 kB / 0.5914 GB, free: 20.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.384, allocations: 19.81 kB / 0.5914 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.875e-05/0.384, allocations: 13.25 kB / 0.5914 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.384, allocations: 3.938 kB / 0.5914 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.384, allocations: 1.094 kB / 0.5914 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.384, allocations: 4 kB / 0.5914 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.3841, allocations: 221.5 kB / 0.5916 GB, free: 20.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3841, allocations: 1.719 kB / 0.5916 GB, free: 20.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.198e-05/0.3842, allocations: 11.98 kB / 0.5916 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3842, allocations: 0 / 0.5916 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3842, allocations: 0 / 0.5916 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3842, allocations: 5.562 kB / 0.5916 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3843, allocations: 0 / 0.5916 GB, free: 20.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002216/0.3845, allocations: 119 kB / 0.5918 GB, free: 20.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.3845, allocations: 92.91 kB / 0.5918 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.3845, allocations: 11.94 kB / 0.5919 GB, free: 19.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.54e-05/0.3846, allocations: 12.95 kB / 0.5919 GB, free: 19.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.3847, allocations: 4 kB / 0.5919 GB, free: 19.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.3847, allocations: 5.75 kB / 0.5919 GB, free: 19.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001163/0.3848, allocations: 192.5 kB / 0.5921 GB, free: 19.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3848, allocations: 0 / 0.5921 GB, free: 19.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002087/0.385, allocations: 19.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.0001718/0.3852, allocations: 120.8 kB / 0.5922 GB, free: 19.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.3855, allocations: 55.94 kB / 0.5923 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3855, allocations: 0.5312 kB / 0.5923 GB, free: 19.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.663e-05/0.3856, allocations: 34.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.0002631/0.3859, allocations: 50.14 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.0004131/0.3863, allocations: 284.4 kB / 0.5926 GB, free: 19.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.3864, allocations: 0.7175 MB / 0.5933 GB, free: 18.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.437e-05/0.3865, allocations: 21.22 kB / 0.5933 GB, free: 18.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.191e-05/0.3865, allocations: 16.72 kB / 0.5933 GB, free: 18.38 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3865, allocations: 0 / 0.5933 GB, free: 18.38 MB / 446.1 MB Notification: Performance of Templates: time 0.003978/0.3905, allocations: 1.756 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 cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)