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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.103/1.103, allocations: 175.8 MB / 478.4 MB, free: 8.461 MB / 382.1 MB " [Timeout remaining time 179] 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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 64.41 kB / 0.6652 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1948, allocations: 94.54 MB / 0.7575 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003155/0.198, allocations: 1.639 MB / 0.7591 GB, free: 308 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3951/0.5931, allocations: 0.5379 MB / 0.7596 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.5933, allocations: 8.281 kB / 0.7596 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002281/0.5935, allocations: 25.75 kB / 0.7597 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.5938, allocations: 68.19 kB / 0.7597 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.594, allocations: 62.98 kB / 0.7598 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.5943, allocations: 131.2 kB / 0.7599 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.5945, allocations: 41.81 kB / 0.7599 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.5946, allocations: 58.27 kB / 0.76 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.5948, allocations: 65.98 kB / 0.7601 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/0.5948, allocations: 9.219 kB / 0.7601 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.193e-05/0.5949, allocations: 24.89 kB / 0.7601 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.595, allocations: 49.23 kB / 0.7601 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.801e-05/0.5951, allocations: 58.58 kB / 0.7602 GB, free: 7.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.5954, allocations: 149.3 kB / 0.7603 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5954, allocations: 1.375 kB / 0.7603 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.685e-06/0.5954, allocations: 0 / 0.7603 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.318e-05/0.5954, allocations: 0.5 kB / 0.7603 GB, free: 7.879 MB / 0.5762 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.000646/0.5961, allocations: 472.4 kB / 0.7608 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.5961, allocations: 10 kB / 0.7608 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.8e-05/0.5962, allocations: 43.25 kB / 0.7608 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.382e-05/0.5962, allocations: 17.44 kB / 0.7609 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.5966, allocations: 243.6 kB / 0.7611 GB, free: 7.191 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.5966, allocations: 5.719 kB / 0.7611 GB, free: 7.191 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.5966, allocations: 6.469 kB / 0.7611 GB, free: 7.191 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.5969, allocations: 116.5 kB / 0.7612 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.5969, allocations: 1.203 kB / 0.7612 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.597, allocations: 3.719 kB / 0.7612 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.597, allocations: 2.094 kB / 0.7612 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.5972, allocations: 62 kB / 0.7613 GB, free: 7.156 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006612/0.5979, allocations: 381.4 kB / 0.7617 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00016/0.598, allocations: 46.83 kB / 0.7617 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.5982, allocations: 29.55 kB / 0.7617 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.5982, allocations: 0.7188 kB / 0.7617 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.5984, allocations: 97.38 kB / 0.7618 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.462e-06/0.5985, allocations: 0 / 0.7618 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0005031/0.599, allocations: 131 kB / 0.7619 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.599, allocations: 77.72 kB / 0.762 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003242/0.5993, allocations: 255.8 kB / 0.7623 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.5993, allocations: 27.52 kB / 0.7623 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.929e-05/0.5994, allocations: 131.2 kB / 0.7624 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.5994, allocations: 6.344 kB / 0.7624 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.5995, allocations: 18.28 kB / 0.7624 GB, free: 6.398 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.729e-05/0.5996, allocations: 334.1 kB / 0.7628 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.5997, allocations: 23.7 kB / 0.7628 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.5998, allocations: 50.08 kB / 0.7628 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.6, allocations: 68.03 kB / 0.7629 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.6, allocations: 0 / 0.7629 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002839/0.6003, allocations: 102.8 kB / 0.763 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.6003, allocations: 10.08 kB / 0.763 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.6003, allocations: 4.938 kB / 0.763 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.6003, allocations: 6.484 kB / 0.763 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.6005, allocations: 16.86 kB / 0.763 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.6005, allocations: 0.8438 kB / 0.763 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.895e-05/0.6006, allocations: 19.02 kB / 0.763 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.6006, allocations: 2.188 kB / 0.763 GB, free: 5.965 MB / 0.5762 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 () * 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 0.0001027/0.6007, allocations: 124.6 kB / 0.7632 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.6007, allocations: 20.78 kB / 0.7632 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.6008, allocations: 23.67 kB / 0.7632 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.6008, allocations: 0.7031 kB / 0.7632 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6008, allocations: 1.594 kB / 0.7632 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.6008, allocations: 4.75 kB / 0.7632 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.601, allocations: 215.8 kB / 0.7634 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.601, allocations: 1.219 kB / 0.7634 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.842e-05/0.601, allocations: 11.02 kB / 0.7634 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.601, allocations: 0.7031 kB / 0.7634 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.6011, allocations: 5.156 kB / 0.7634 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.6011, allocations: 4.656 kB / 0.7634 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.6011, allocations: 0 / 0.7634 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.6013, allocations: 125.3 kB / 0.7636 GB, free: 5.551 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.242e-05/0.6014, allocations: 93.62 kB / 0.7636 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.6014, allocations: 4.547 kB / 0.7637 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.421e-05/0.6015, allocations: 14.56 kB / 0.7637 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/0.6016, allocations: 7.219 kB / 0.7637 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.6016, allocations: 4.953 kB / 0.7637 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001979/0.6018, allocations: 186.9 kB / 0.7639 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.6018, allocations: 0 / 0.7639 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002393/0.602, allocations: 24.2 kB / 0.7639 GB, free: 5.367 MB / 0.5762 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 () * 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.0006512/0.6027, allocations: 0.6825 MB / 0.7645 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003032/0.603, allocations: 61.41 kB / 0.7646 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.603, allocations: 0 / 0.7646 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.6031, allocations: 27.33 kB / 0.7646 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.6034, allocations: 59.3 kB / 0.7647 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.6056, allocations: 1.754 MB / 0.7664 GB, free: 19.53 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.6061, allocations: 0.7228 MB / 0.7671 GB, free: 18.83 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.765e-05/0.6062, allocations: 17.67 kB / 0.7671 GB, free: 18.83 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.805e-05/0.6063, allocations: 44.61 kB / 0.7672 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of SimCode: time 7.81e-07/0.6063, allocations: 0 / 0.7672 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/0.6373, allocations: 3.615 MB / 0.7707 GB, free: 18.28 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.893, allocations: 1.625 kB / 0.7707 GB, free: 18.28 MB / 0.5919 GB " [Timeout remaining time 651] (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/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.660094114020467] Failed to read output from testmodel.py, exit status != 0: 8.963721469044685 8.98013627 8.381318153 Calling exit ...