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.00143/0.00143, allocations: 117.2 kB / 17.17 MB, free: 5.754 MB / 14.72 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.001833/0.001833, allocations: 207.3 kB / 20.13 MB, free: 2.914 MB / 14.72 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 1.557/1.557, allocations: 230.6 MB / 253.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.9293/0.9293, allocations: 133.9 MB / 443.5 MB, free: 14.02 MB / 350.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/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 65.75 kB / 0.6141 GB, free: 38.49 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.2014, allocations: 85.86 MB / 0.6979 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.004176/0.2056, allocations: 1.658 MB / 0.6995 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001578/0.2072, allocations: 0.6171 MB / 0.7002 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/0.2074, allocations: 10.81 kB / 0.7002 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.2076, allocations: 30.23 kB / 0.7002 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0003755/0.208, allocations: 64.61 kB / 0.7003 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.2083, allocations: 73.72 kB / 0.7003 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002967/0.2086, allocations: 131.6 kB / 0.7004 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2088, allocations: 37.22 kB / 0.7005 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/0.209, allocations: 65.31 kB / 0.7005 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.2092, allocations: 67.94 kB / 0.7006 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.817e-05/0.2092, allocations: 8.375 kB / 0.7006 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.2093, allocations: 25.64 kB / 0.7006 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.2094, allocations: 47.95 kB / 0.7007 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 8.615e-05/0.2095, allocations: 56.36 kB / 0.7007 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003345/0.2099, allocations: 156.1 kB / 0.7009 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2099, allocations: 1.25 kB / 0.7009 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2099, allocations: 0 / 0.7009 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.776e-06/0.2099, allocations: 0 / 0.7009 GB, free: 11.5 MB / 0.5137 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.000902/0.2108, allocations: 479.1 kB / 0.7013 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.947e-05/0.2108, allocations: 15.17 kB / 0.7014 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.014e-05/0.2108, allocations: 1.406 kB / 0.7014 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.91e-05/0.2109, allocations: 42.39 kB / 0.7014 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.2111, allocations: 30 kB / 0.7014 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.2116, allocations: 245.9 kB / 0.7017 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.2116, allocations: 3.375 kB / 0.7017 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.2116, allocations: 7.031 kB / 0.7017 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.2119, allocations: 112.7 kB / 0.7018 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2119, allocations: 1.344 kB / 0.7018 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.2119, allocations: 0 / 0.7018 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.393e-06/0.212, allocations: 3.062 kB / 0.7018 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002506/0.2122, allocations: 67 kB / 0.7019 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.2133, allocations: 379.7 kB / 0.7022 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.2135, allocations: 40.3 kB / 0.7023 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.2136, allocations: 34.58 kB / 0.7023 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.2137, allocations: 0 / 0.7023 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.2139, allocations: 99.14 kB / 0.7024 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.2139, allocations: 0 / 0.7024 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0005239/0.2145, allocations: 124.3 kB / 0.7025 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.2145, allocations: 77.11 kB / 0.7026 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/0.2149, allocations: 261.2 kB / 0.7028 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.2149, allocations: 26.73 kB / 0.7028 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.215, allocations: 128.8 kB / 0.703 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.215, allocations: 13.19 kB / 0.703 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.2151, allocations: 14.38 kB / 0.703 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001957/0.2153, allocations: 336.1 kB / 0.7033 GB, free: 9.234 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.2154, allocations: 30.48 kB / 0.7033 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.2155, allocations: 47.41 kB / 0.7034 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.2158, allocations: 70.55 kB / 0.7035 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2158, allocations: 0 / 0.7035 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003701/0.2162, allocations: 101.5 kB / 0.7036 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.2162, allocations: 12.09 kB / 0.7036 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.2162, allocations: 3.938 kB / 0.7036 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2163, allocations: 3.938 kB / 0.7036 GB, free: 8.949 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.2164, allocations: 16.27 kB / 0.7036 GB, free: 8.934 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/0.2164, allocations: 0 / 0.7036 GB, free: 8.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.2165, allocations: 15.92 kB / 0.7036 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2165, allocations: 4 kB / 0.7036 GB, free: 8.914 MB / 0.5137 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.000147/0.2167, allocations: 126.5 kB / 0.7037 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.995e-05/0.2167, allocations: 27.84 kB / 0.7038 GB, free: 8.754 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.393e-05/0.2168, allocations: 25.17 kB / 0.7038 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2168, allocations: 0 / 0.7038 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.2168, allocations: 0 / 0.7038 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2168, allocations: 0 / 0.7038 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.217, allocations: 213.6 kB / 0.704 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.217, allocations: 0 / 0.704 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.686e-05/0.2171, allocations: 11.98 kB / 0.704 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.2171, allocations: 0 / 0.704 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.2171, allocations: 3.938 kB / 0.704 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.2171, allocations: 4 kB / 0.704 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2171, allocations: 0 / 0.704 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.2175, allocations: 128.9 kB / 0.7041 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.71e-05/0.2176, allocations: 92.97 kB / 0.7042 GB, free: 8.195 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.2176, allocations: 3.938 kB / 0.7042 GB, free: 8.191 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.112e-05/0.2177, allocations: 15.98 kB / 0.7042 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.187e-05/0.2178, allocations: 3.984 kB / 0.7042 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.2178, allocations: 8 kB / 0.7042 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002169/0.218, allocations: 188.5 kB / 0.7044 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.218, allocations: 0 / 0.7044 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002464/0.2183, allocations: 20 kB / 0.7044 GB, free: 7.965 MB / 0.5137 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.0009268/0.2192, allocations: 0.6895 MB / 0.7051 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003507/0.2195, allocations: 59.94 kB / 0.7052 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2196, allocations: 0 / 0.7052 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.2197, allocations: 27.92 kB / 0.7052 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.22, allocations: 49.88 kB / 0.7052 GB, free: 7.121 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.2228, allocations: 1.758 MB / 0.707 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.2232, allocations: 0.7312 MB / 0.7077 GB, free: 4.504 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.712e-05/0.2232, allocations: 12.55 kB / 0.7077 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.967e-05/0.2233, allocations: 47.42 kB / 0.7077 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/0.2233, allocations: 0 / 0.7077 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.2478, allocations: 3.686 MB / 0.7113 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.182/8.43, allocations: 11.86 kB / 0.7113 GB, free: 0.875 MB / 0.5137 GB " [Timeout remaining time 651] (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 os._exit(0), Time elapsed: 12.591511539008934] Failed to read output from testmodel.py, exit status != 0: 8.944048398989253 8.59629343 8.382458721999999 Calling exit ...