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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 180.9 kB / 7.651 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.7778/0.7778, allocations: 133.6 MB / 141.6 MB, free: 2.883 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.49/1.49, allocations: 221.5 MB / 395.4 MB, free: 10.8 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.001032/0.001032, allocations: 104.2 kB / 478.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.033e-05, allocations: 0 / 0.5535 GB, free: 8.965 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4693/0.4694, allocations: 82.31 MB / 0.6339 GB, free: 40.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1521/0.6216, allocations: 112.5 MB / 0.7438 GB, free: 10.17 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.6218, allocations: 79.95 kB / 0.7439 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009328/0.6312, allocations: 3.313 MB / 0.7471 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.353e-06/0.6312, allocations: 0 / 0.7471 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.554e-05/0.6312, allocations: 0 / 0.7471 GB, free: 6.777 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.0005929/0.6318, allocations: 446 kB / 0.7475 GB, free: 6.297 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.6319, allocations: 8.031 kB / 0.7475 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.66e-05/0.6319, allocations: 19.72 kB / 0.7476 GB, free: 6.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.6323, allocations: 239.6 kB / 0.7478 GB, free: 5.992 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.6323, allocations: 0 / 0.7478 GB, free: 5.992 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.6323, allocations: 4 kB / 0.7478 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001032/0.6324, allocations: 28 kB / 0.7478 GB, free: 5.961 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.6326, allocations: 80.17 kB / 0.7479 GB, free: 5.879 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.6326, allocations: 3.984 kB / 0.7479 GB, free: 5.875 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.6326, allocations: 0 / 0.7479 GB, free: 5.875 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.6327, allocations: 8 kB / 0.7479 GB, free: 5.867 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006047/0.6333, allocations: 345.2 kB / 0.7482 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 5.756e-05/0.6333, allocations: 34.5 kB / 0.7483 GB, free: 5.449 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.247e-05/0.6334, allocations: 12.92 kB / 0.7483 GB, free: 5.434 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.6334, allocations: 4 kB / 0.7483 GB, free: 5.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001456/0.6336, allocations: 77.06 kB / 0.7484 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.6336, allocations: 4 kB / 0.7484 GB, free: 5.332 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0001745/0.6337, allocations: 57.55 kB / 0.7484 GB, free: 5.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.6338, allocations: 81.11 kB / 0.7485 GB, free: 5.172 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.634, allocations: 194.1 kB / 0.7487 GB, free: 4.973 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.634, allocations: 25.7 kB / 0.7487 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.615e-05/0.6341, allocations: 139.8 kB / 0.7488 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.6342, allocations: 7.906 kB / 0.7489 GB, free: 4.793 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.6342, allocations: 7.875 kB / 0.7489 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.6343, allocations: 326.8 kB / 0.7492 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.221e-05/0.6343, allocations: 4 kB / 0.7492 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.083e-05/0.6344, allocations: 43.41 kB / 0.7492 GB, free: 4.398 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.277e-05/0.6344, allocations: 9.188 kB / 0.7492 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.6344, allocations: 0 / 0.7492 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001153/0.6345, allocations: 65.44 kB / 0.7493 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.6346, allocations: 8 kB / 0.7493 GB, free: 4.312 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.6346, allocations: 128 / 0.7493 GB, free: 4.312 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.6346, allocations: 7.953 kB / 0.7493 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.6347, allocations: 15.98 kB / 0.7493 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.177e-06/0.6347, allocations: 0 / 0.7493 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.907e-05/0.6349, allocations: 15.98 kB / 0.7493 GB, free: 4.273 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.6349, allocations: 0 / 0.7493 GB, free: 4.273 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 7.681e-05/0.635, allocations: 112.9 kB / 0.7494 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001061/0.6351, allocations: 65.44 kB / 0.7495 GB, free: 4.086 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.6351, allocations: 19.77 kB / 0.7495 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.6352, allocations: 21.55 kB / 0.7495 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.6352, allocations: 0 / 0.7495 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.6352, allocations: 0 / 0.7495 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.6352, allocations: 0 / 0.7495 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.6353, allocations: 190.2 kB / 0.7497 GB, free: 3.816 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.6354, allocations: 4 kB / 0.7497 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.294e-05/0.6355, allocations: 19.98 kB / 0.7497 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.6355, allocations: 0 / 0.7497 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.6355, allocations: 0 / 0.7497 GB, free: 3.793 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.6355, allocations: 7.938 kB / 0.7498 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6355, allocations: 0 / 0.7498 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.6356, allocations: 88.88 kB / 0.7498 GB, free: 3.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.178e-05/0.6357, allocations: 96.91 kB / 0.7499 GB, free: 3.566 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.6357, allocations: 0 / 0.7499 GB, free: 3.566 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.452e-05/0.6358, allocations: 15.98 kB / 0.7499 GB, free: 3.551 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/0.6359, allocations: 11.95 kB / 0.75 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.6359, allocations: 4 kB / 0.75 GB, free: 3.535 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001442/0.6361, allocations: 157.8 kB / 0.7501 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.774e-06/0.6361, allocations: 0 / 0.7501 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002254/0.6363, allocations: 27.84 kB / 0.7501 GB, free: 3.355 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.0005254/0.6368, allocations: 0.6458 MB / 0.7508 GB, free: 2.684 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001064/0.637, allocations: 31.91 kB / 0.7508 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.637, allocations: 192 / 0.7508 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.104e-05/0.637, allocations: 16 kB / 0.7508 GB, free: 2.637 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.6373, allocations: 37.45 kB / 0.7509 GB, free: 2.598 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005642/0.6379, allocations: 230.3 kB / 0.7511 GB, free: 2.34 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.6382, allocations: 0.7197 MB / 0.7518 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.319e-05/0.6383, allocations: 20.66 kB / 0.7518 GB, free: 1.574 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.076e-05/0.6384, allocations: 43.36 kB / 0.7518 GB, free: 1.531 MB / 0.5261 GB Notification: Performance of SimCode: time 2.81e-07/0.6384, allocations: 4 kB / 0.7518 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.6622, allocations: 2.699 MB / 0.7545 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.6624, allocations: 125.9 kB / 0.7546 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/2.33, allocations: 0 / 0.7546 GB, free: 14.66 MB / 0.5417 GB (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/linux/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)