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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007821/0.0007821, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007633/0.0007633, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8789/0.8789, allocations: 177.1 MB / 202.7 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/package.mo): time 0.7291/0.7291, allocations: 154.6 MB / 413.7 MB, free: 0.8086 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.23e-05, allocations: 9.859 kB / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002072/0.002094, allocations: 1.645 MB / 0.6197 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0007159/0.00281, allocations: 0.5766 MB / 0.6202 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.822e-05/0.002878, allocations: 4 kB / 0.6203 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.00303, allocations: 39.64 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.003211, allocations: 59.69 kB / 0.6203 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.003375, allocations: 83.7 kB / 0.6204 GB, free: 11.24 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.003519, allocations: 131.5 kB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.003637, allocations: 33.66 kB / 0.6206 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.00378, allocations: 75.81 kB / 0.6207 GB, free: 11 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.483e-05/0.003855, allocations: 51.81 kB / 0.6207 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.003879, allocations: 8 kB / 0.6207 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.003937, allocations: 39.84 kB / 0.6208 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 6.632e-05/0.004003, allocations: 51.83 kB / 0.6208 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.272e-05/0.004036, allocations: 27.92 kB / 0.6208 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.004199, allocations: 143.4 kB / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.004203, allocations: 7.984 kB / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.92e-07/0.004204, allocations: 0 / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.004207, allocations: 0 / 0.621 GB, free: 10.68 MB / 0.5886 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.0004105/0.004618, allocations: 393.4 kB / 0.6213 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.00465, allocations: 8.031 kB / 0.6214 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.992e-05/0.00468, allocations: 42.75 kB / 0.6214 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.004789, allocations: 28.78 kB / 0.6214 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.005011, allocations: 185.3 kB / 0.6216 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.005021, allocations: 8.375 kB / 0.6216 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.958e-06/0.005031, allocations: 4.375 kB / 0.6216 GB, free: 9.957 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.005225, allocations: 169.5 kB / 0.6218 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.005232, allocations: 4.172 kB / 0.6218 GB, free: 9.77 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.005242, allocations: 4.125 kB / 0.6218 GB, free: 9.766 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.005247, allocations: 4 kB / 0.6218 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.005362, allocations: 59.94 kB / 0.6218 GB, free: 9.703 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.005737, allocations: 339.6 kB / 0.6222 GB, free: 9.328 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 8.814e-05/0.005825, allocations: 46.55 kB / 0.6222 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.658e-05/0.005882, allocations: 24.91 kB / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.005895, allocations: 0 / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.006087, allocations: 152.4 kB / 0.6224 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.006088, allocations: 0 / 0.6224 GB, free: 9.066 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002762/0.006364, allocations: 125.5 kB / 0.6225 GB, free: 8.938 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.006409, allocations: 77.11 kB / 0.6226 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.006616, allocations: 261.6 kB / 0.6228 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.006633, allocations: 29.64 kB / 0.6229 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.006705, allocations: 136 kB / 0.623 GB, free: 8.414 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.006721, allocations: 3.953 kB / 0.623 GB, free: 8.41 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-05/0.006757, allocations: 17.7 kB / 0.623 GB, free: 8.387 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.006871, allocations: 326.8 kB / 0.6233 GB, free: 8.059 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.365e-05/0.006934, allocations: 23.97 kB / 0.6233 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.301e-05/0.007017, allocations: 85.23 kB / 0.6234 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.007136, allocations: 62.53 kB / 0.6235 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.007138, allocations: 0 / 0.6235 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001664/0.007305, allocations: 105.5 kB / 0.6236 GB, free: 7.754 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.007319, allocations: 8 kB / 0.6236 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.007324, allocations: 0 / 0.6236 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.007337, allocations: 96 / 0.6236 GB, free: 7.746 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.889e-05/0.007416, allocations: 19.91 kB / 0.6236 GB, free: 7.727 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.007421, allocations: 3.938 kB / 0.6236 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.735e-05/0.007468, allocations: 19.88 kB / 0.6236 GB, free: 7.703 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.007476, allocations: 4.094 kB / 0.6236 GB, free: 7.699 MB / 0.5886 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 9.245e-05/0.007569, allocations: 130.8 kB / 0.6238 GB, free: 7.562 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.007589, allocations: 15.91 kB / 0.6238 GB, free: 7.547 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.007614, allocations: 21.33 kB / 0.6238 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.007617, allocations: 0 / 0.6238 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.007621, allocations: 0 / 0.6238 GB, free: 7.527 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.007625, allocations: 3.938 kB / 0.6238 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.007752, allocations: 172.7 kB / 0.624 GB, free: 7.312 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.007754, allocations: 4 kB / 0.624 GB, free: 7.309 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.108e-05/0.007795, allocations: 15.98 kB / 0.624 GB, free: 7.293 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.007796, allocations: 4 kB / 0.624 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.007804, allocations: 0 / 0.624 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.007805, allocations: 0 / 0.624 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.007807, allocations: 3.984 kB / 0.624 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.007973, allocations: 132.8 kB / 0.6241 GB, free: 7.137 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.727e-05/0.00799, allocations: 11.91 kB / 0.6241 GB, free: 7.125 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.008006, allocations: 0 / 0.6241 GB, free: 7.125 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.486e-05/0.008041, allocations: 7.984 kB / 0.6241 GB, free: 7.117 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.008082, allocations: 19.92 kB / 0.6242 GB, free: 7.098 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.008101, allocations: 4 kB / 0.6242 GB, free: 7.094 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001217/0.008223, allocations: 189.2 kB / 0.6243 GB, free: 6.906 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008223, allocations: 0 / 0.6243 GB, free: 6.906 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001512/0.008374, allocations: 27.94 kB / 0.6244 GB, free: 6.879 MB / 0.5886 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.0004667/0.008841, allocations: 0.6721 MB / 0.625 GB, free: 6.18 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001715/0.009012, allocations: 59.88 kB / 0.6251 GB, free: 6.121 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.009014, allocations: 0 / 0.6251 GB, free: 6.121 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.706e-05/0.009071, allocations: 27.97 kB / 0.6251 GB, free: 6.094 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.009286, allocations: 50.56 kB / 0.6252 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.01078, allocations: 1.758 MB / 0.6269 GB, free: 4.188 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.34e-05/0.01086, allocations: 106.2 kB / 0.627 GB, free: 4.066 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 6.109e-05/0.01092, allocations: 20.55 kB / 0.627 GB, free: 4.047 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.362e-05/0.01098, allocations: 44.48 kB / 0.627 GB, free: 4.004 MB / 0.5886 GB Notification: Performance of SimCode: time 1.002e-06/0.01098, allocations: 4 kB / 0.627 GB, free: 4 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.03049, allocations: 4.391 MB / 0.6313 GB, free: 15.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.923/6.953, allocations: 7.062 kB / 0.6313 GB, free: 15.79 MB / 0.6042 GB " [Timeout remaining time 653] (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 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.580489725805819] Failed to read output from testmodel.py, exit status != 0: 7.036452210508287 7.046373734 7.040356813 Calling exit ...