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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8273/0.8273, allocations: 133.6 MB / 141.6 MB, free: 2.891 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 221.5 MB / 395.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008764/0.0008764, allocations: 98.66 kB / 478.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.231e-05, allocations: 4 kB / 0.5535 GB, free: 8.969 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3955, allocations: 82.3 MB / 0.6339 GB, free: 40.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2023/0.5979, allocations: 112.5 MB / 0.7438 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/0.5983, allocations: 75.95 kB / 0.7439 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0136/0.612, allocations: 3.305 MB / 0.7471 GB, free: 6.801 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.523e-06/0.612, allocations: 3.938 kB / 0.7471 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.76e-05/0.612, allocations: 4 kB / 0.7471 GB, free: 6.793 MB / 0.5261 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.0007043/0.6127, allocations: 438 kB / 0.7475 GB, free: 6.32 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.6128, allocations: 12.03 kB / 0.7475 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.942e-05/0.6129, allocations: 23.72 kB / 0.7476 GB, free: 6.285 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.6133, allocations: 239.6 kB / 0.7478 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.6133, allocations: 4 kB / 0.7478 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.6133, allocations: 0 / 0.7478 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001495/0.6135, allocations: 32 kB / 0.7478 GB, free: 5.973 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.6137, allocations: 77.66 kB / 0.7479 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.6138, allocations: 3.938 kB / 0.7479 GB, free: 5.887 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.6138, allocations: 0 / 0.7479 GB, free: 5.887 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.6138, allocations: 4 kB / 0.7479 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.6146, allocations: 361.1 kB / 0.7482 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 8.459e-05/0.6147, allocations: 26.58 kB / 0.7483 GB, free: 5.457 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.036e-05/0.6148, allocations: 20.86 kB / 0.7483 GB, free: 5.434 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.956e-05/0.6148, allocations: 0 / 0.7483 GB, free: 5.434 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001806/0.615, allocations: 81.06 kB / 0.7484 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.615, allocations: 0 / 0.7484 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002227/0.6152, allocations: 57.5 kB / 0.7484 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.456e-05/0.6153, allocations: 77.11 kB / 0.7485 GB, free: 5.18 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.6157, allocations: 198.1 kB / 0.7487 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.6157, allocations: 25.7 kB / 0.7487 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.6158, allocations: 139.9 kB / 0.7488 GB, free: 4.805 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.6159, allocations: 3.906 kB / 0.7488 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-06/0.6159, allocations: 0 / 0.7488 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001893/0.6161, allocations: 326.8 kB / 0.7492 GB, free: 4.473 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.689e-05/0.6161, allocations: 15.86 kB / 0.7492 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.375e-05/0.6162, allocations: 35.44 kB / 0.7492 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.486e-05/0.6163, allocations: 9.188 kB / 0.7492 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.6163, allocations: 0 / 0.7492 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000163/0.6164, allocations: 65.44 kB / 0.7493 GB, free: 4.332 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.6165, allocations: 8 kB / 0.7493 GB, free: 4.324 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.6165, allocations: 0 / 0.7493 GB, free: 4.324 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.6165, allocations: 3.953 kB / 0.7493 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.6167, allocations: 20.11 kB / 0.7493 GB, free: 4.301 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.6167, allocations: 0 / 0.7493 GB, free: 4.301 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.6169, allocations: 15.98 kB / 0.7493 GB, free: 4.285 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.6169, allocations: 0 / 0.7493 GB, free: 4.285 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.617, allocations: 116.9 kB / 0.7494 GB, free: 4.164 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001429/0.6172, allocations: 65.44 kB / 0.7495 GB, free: 4.094 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.6172, allocations: 23.77 kB / 0.7495 GB, free: 4.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/0.6173, allocations: 13.56 kB / 0.7495 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.6173, allocations: 0 / 0.7495 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6173, allocations: 0 / 0.7495 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.6173, allocations: 3.984 kB / 0.7495 GB, free: 4.047 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.6176, allocations: 190.2 kB / 0.7497 GB, free: 3.824 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6176, allocations: 0 / 0.7497 GB, free: 3.824 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.6177, allocations: 15.98 kB / 0.7497 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.6178, allocations: 0 / 0.7497 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.6178, allocations: 4 kB / 0.7497 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.6178, allocations: 3.953 kB / 0.7497 GB, free: 3.801 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.6178, allocations: 7.938 kB / 0.7498 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.618, allocations: 89.11 kB / 0.7498 GB, free: 3.688 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.6181, allocations: 92.91 kB / 0.7499 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.6181, allocations: 7.938 kB / 0.7499 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.6183, allocations: 19.98 kB / 0.75 GB, free: 3.551 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.063e-05/0.6184, allocations: 11.94 kB / 0.75 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.6184, allocations: 4 kB / 0.75 GB, free: 3.535 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002102/0.6186, allocations: 153.8 kB / 0.7501 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3e-07/0.6186, allocations: 0 / 0.7501 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0004057/0.6191, allocations: 23.91 kB / 0.7501 GB, free: 3.363 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007773/0.6198, allocations: 0.6505 MB / 0.7508 GB, free: 2.688 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001425/0.62, allocations: 27.86 kB / 0.7508 GB, free: 2.66 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.62, allocations: 0 / 0.7508 GB, free: 2.66 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.089e-05/0.6201, allocations: 16.19 kB / 0.7508 GB, free: 2.645 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.6205, allocations: 34.72 kB / 0.7508 GB, free: 2.609 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008108/0.6213, allocations: 230.3 kB / 0.7511 GB, free: 2.352 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.6218, allocations: 0.7236 MB / 0.7518 GB, free: 1.602 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 9.843e-05/0.6219, allocations: 20.58 kB / 0.7518 GB, free: 1.582 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.622, allocations: 47.42 kB / 0.7518 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of SimCode: time 3.5e-07/0.6221, allocations: 0 / 0.7518 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.6474, allocations: 2.704 MB / 0.7545 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000267/0.6477, allocations: 129.4 kB / 0.7546 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.338, allocations: 0 / 0.7546 GB, free: 14.66 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)