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: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, 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.001884/0.001885, allocations: 194.6 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7586/0.7586, allocations: 132.2 MB / 422.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 66.23 kB / 0.5019 GB, free: 3.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5033/0.5049, allocations: 80.2 MB / 0.5802 GB, free: 4.605 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003026/0.508, allocations: 1.639 MB / 0.5818 GB, free: 3.465 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008309/0.5088, allocations: 0.5416 MB / 0.5823 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.38e-05/0.5089, allocations: 10.75 kB / 0.5823 GB, free: 3.078 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.5091, allocations: 24.52 kB / 0.5824 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.5093, allocations: 59.22 kB / 0.5824 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.5095, allocations: 69.19 kB / 0.5825 GB, free: 2.992 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.5097, allocations: 125.2 kB / 0.5826 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.5099, allocations: 43 kB / 0.5826 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.51, allocations: 62.11 kB / 0.5827 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.5102, allocations: 67.16 kB / 0.5828 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.5102, allocations: 8.312 kB / 0.5828 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.598e-05/0.5103, allocations: 17.03 kB / 0.5828 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.973e-05/0.5104, allocations: 48.59 kB / 0.5828 GB, free: 2.832 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.109e-05/0.5104, allocations: 56.58 kB / 0.5829 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.5106, allocations: 148.5 kB / 0.583 GB, free: 2.727 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.5107, allocations: 4 kB / 0.583 GB, free: 2.723 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5107, allocations: 0 / 0.583 GB, free: 2.723 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.5107, allocations: 1.375 kB / 0.583 GB, free: 2.723 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.0006476/0.5113, allocations: 458.4 kB / 0.5835 GB, free: 2.301 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5114, allocations: 17.36 kB / 0.5835 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.583e-05/0.5114, allocations: 38.84 kB / 0.5835 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/0.5115, allocations: 21.31 kB / 0.5835 GB, free: 2.238 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.5117, allocations: 234.8 kB / 0.5838 GB, free: 2.008 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.5118, allocations: 11.64 kB / 0.5838 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.5118, allocations: 2.844 kB / 0.5838 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.5121, allocations: 112.2 kB / 0.5839 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.5121, allocations: 0 / 0.5839 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.5121, allocations: 1.906 kB / 0.5839 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.5121, allocations: 1.312 kB / 0.5839 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.5124, allocations: 67.03 kB / 0.584 GB, free: 1.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006208/0.513, allocations: 386.7 kB / 0.5843 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.5132, allocations: 43.41 kB / 0.5844 GB, free: 1.578 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.5133, allocations: 32.72 kB / 0.5844 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.5133, allocations: 0.75 kB / 0.5844 GB, free: 1.562 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.5136, allocations: 92.78 kB / 0.5845 GB, free: 1.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.5137, allocations: 0 / 0.5845 GB, free: 1.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004688/0.5141, allocations: 126.6 kB / 0.5846 GB, free: 1.434 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.5142, allocations: 83.19 kB / 0.5847 GB, free: 1.336 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.5145, allocations: 254.5 kB / 0.5849 GB, free: 1.188 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.5145, allocations: 26.92 kB / 0.585 GB, free: 1.156 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.517e-05/0.5146, allocations: 122.9 kB / 0.5851 GB, free: 1.047 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.5146, allocations: 9.859 kB / 0.5851 GB, free: 1.039 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.5146, allocations: 15.23 kB / 0.5851 GB, free: 1.023 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.748e-05/0.5147, allocations: 332.1 kB / 0.5854 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.5148, allocations: 24.06 kB / 0.5854 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.515, allocations: 50.53 kB / 0.5855 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.5152, allocations: 69.22 kB / 0.5856 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.5152, allocations: 5.297 kB / 0.5856 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002833/0.5155, allocations: 106.5 kB / 0.5857 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.5155, allocations: 9.312 kB / 0.5857 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.5155, allocations: 4.719 kB / 0.5857 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.5156, allocations: 0.75 kB / 0.5857 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.5157, allocations: 11.92 kB / 0.5857 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.5157, allocations: 1.312 kB / 0.5857 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.5158, allocations: 19.03 kB / 0.5857 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.5158, allocations: 2.031 kB / 0.5857 GB, free: 0.5469 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 8.103e-05/0.5159, allocations: 128.4 kB / 0.5858 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.948e-05/0.5159, allocations: 20.86 kB / 0.5858 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.516, allocations: 26.66 kB / 0.5859 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.516, allocations: 0.5625 kB / 0.5859 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.516, allocations: 0.9375 kB / 0.5859 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.516, allocations: 8.719 kB / 0.5859 GB, free: 396 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.5161, allocations: 213 kB / 0.5861 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5161, allocations: 0 / 0.5861 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.283e-05/0.5162, allocations: 15.61 kB / 0.5861 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.5162, allocations: 0.9844 kB / 0.5861 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.5163, allocations: 4.781 kB / 0.5861 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5163, allocations: 4 kB / 0.5861 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5163, allocations: 1 kB / 0.5861 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000293/0.5166, allocations: 122.4 kB / 0.5862 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.5166, allocations: 84.78 kB / 0.5863 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.5167, allocations: 5.469 kB / 0.5863 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.96e-05/0.5168, allocations: 17.53 kB / 0.5863 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.482e-05/0.5168, allocations: 4.875 kB / 0.5863 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.5168, allocations: 4.672 kB / 0.5863 GB, free: 15.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001866/0.517, allocations: 190.5 kB / 0.5865 GB, free: 15.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.517, allocations: 0.5625 kB / 0.5865 GB, free: 15.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.5173, allocations: 26.41 kB / 0.5865 GB, free: 15.86 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.0006847/0.518, allocations: 0.688 MB / 0.5872 GB, free: 15.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.5183, allocations: 59.89 kB / 0.5873 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5183, allocations: 0 / 0.5873 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.5184, allocations: 27.84 kB / 0.5873 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.5188, allocations: 43.91 kB / 0.5873 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.5212, allocations: 1.733 MB / 0.589 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.5215, allocations: 0.7211 MB / 0.5897 GB, free: 13.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.5e-05/0.5216, allocations: 23.23 kB / 0.5898 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.449e-05/0.5216, allocations: 42.59 kB / 0.5898 GB, free: 13.12 MB / 446.1 MB Notification: Performance of SimCode: time 3.2e-07/0.5217, allocations: 0 / 0.5898 GB, free: 13.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.5442, allocations: 3.557 MB / 0.5933 GB, free: 12.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.992/8.536, allocations: 8.844 kB / 0.5933 GB, free: 12.41 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)