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.001382/0.001382, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001622/0.001622, allocations: 219 kB / 22.26 MB, free: 5.082 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 8.016 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.8681/0.8681, allocations: 134 MB / 446.4 MB, free: 10.22 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="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: 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.001945/0.001945, allocations: 66.81 kB / 0.6185 GB, free: 7.25 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.2, allocations: 85.9 MB / 0.7024 GB, free: 1.422 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003394/0.2034, allocations: 1.669 MB / 0.7041 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.2045, allocations: 0.6272 MB / 0.7047 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.2046, allocations: 11.94 kB / 0.7047 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.2048, allocations: 27.73 kB / 0.7047 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.2051, allocations: 59.73 kB / 0.7048 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.2053, allocations: 79.84 kB / 0.7048 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.2055, allocations: 135.5 kB / 0.705 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.2057, allocations: 37.88 kB / 0.705 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.2059, allocations: 63.72 kB / 0.7051 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.206, allocations: 71.67 kB / 0.7051 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.206, allocations: 12 kB / 0.7051 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.903e-05/0.2061, allocations: 24 kB / 0.7052 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.2062, allocations: 51.77 kB / 0.7052 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.249e-05/0.2063, allocations: 55.61 kB / 0.7053 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.2065, allocations: 151.3 kB / 0.7054 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2065, allocations: 0 / 0.7054 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2065, allocations: 0 / 0.7054 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.2065, allocations: 0 / 0.7054 GB, free: 14.34 MB / 0.5294 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.0006542/0.2072, allocations: 409.2 kB / 0.7058 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.2072, allocations: 12.03 kB / 0.7058 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.261e-05/0.2073, allocations: 30.75 kB / 0.7058 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.2074, allocations: 32.78 kB / 0.7059 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.2078, allocations: 186.1 kB / 0.706 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.2078, allocations: 8.359 kB / 0.7061 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.2078, allocations: 8.375 kB / 0.7061 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.2081, allocations: 113.2 kB / 0.7062 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.2081, allocations: 0 / 0.7062 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2081, allocations: 8 kB / 0.7062 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2081, allocations: 0 / 0.7062 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.2084, allocations: 59.94 kB / 0.7062 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006283/0.209, allocations: 359.6 kB / 0.7066 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.2091, allocations: 38.55 kB / 0.7066 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.2092, allocations: 28.91 kB / 0.7066 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.2093, allocations: 0 / 0.7066 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002432/0.2095, allocations: 101 kB / 0.7067 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2095, allocations: 0 / 0.7067 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004656/0.21, allocations: 125.5 kB / 0.7069 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.21, allocations: 77.11 kB / 0.7069 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.2103, allocations: 260.9 kB / 0.7072 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.2103, allocations: 29.7 kB / 0.7072 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/0.2104, allocations: 124.1 kB / 0.7073 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.2104, allocations: 11.89 kB / 0.7073 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.2105, allocations: 21.66 kB / 0.7074 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2106, allocations: 322.8 kB / 0.7077 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.2107, allocations: 23.97 kB / 0.7077 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.2109, allocations: 55.34 kB / 0.7077 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.2111, allocations: 70.56 kB / 0.7078 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2111, allocations: 0 / 0.7078 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002756/0.2114, allocations: 101.5 kB / 0.7079 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2114, allocations: 4 kB / 0.7079 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2114, allocations: 0 / 0.7079 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.2114, allocations: 7.938 kB / 0.7079 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2115, allocations: 23.95 kB / 0.7079 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2115, allocations: 3.984 kB / 0.7079 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.405e-05/0.2116, allocations: 11.94 kB / 0.708 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.2116, allocations: 3.984 kB / 0.708 GB, free: 11.5 MB / 0.5294 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.0001223/0.2117, allocations: 125.8 kB / 0.7081 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.2118, allocations: 23.84 kB / 0.7081 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.313e-05/0.2118, allocations: 17.28 kB / 0.7081 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2118, allocations: 4 kB / 0.7081 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.2118, allocations: 4 kB / 0.7081 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.2118, allocations: 4.281 kB / 0.7081 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.2121, allocations: 188.7 kB / 0.7083 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.2121, allocations: 4 kB / 0.7083 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.53e-05/0.2121, allocations: 7.984 kB / 0.7083 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.2121, allocations: 7.984 kB / 0.7083 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.2122, allocations: 3.938 kB / 0.7083 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2122, allocations: 0 / 0.7083 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2122, allocations: 0 / 0.7083 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.2125, allocations: 124.9 kB / 0.7085 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.2125, allocations: 19.84 kB / 0.7085 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.2125, allocations: 3.938 kB / 0.7085 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.139e-05/0.2126, allocations: 11.98 kB / 0.7085 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.2126, allocations: 4 kB / 0.7085 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.2127, allocations: 4 kB / 0.7085 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001989/0.2129, allocations: 196.5 kB / 0.7087 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2129, allocations: 0 / 0.7087 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002233/0.2131, allocations: 20 kB / 0.7087 GB, free: 10.67 MB / 0.5294 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.0007848/0.2139, allocations: 0.6922 MB / 0.7094 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.2142, allocations: 51.89 kB / 0.7094 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2142, allocations: 0 / 0.7094 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.2143, allocations: 32.16 kB / 0.7095 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.2146, allocations: 51.95 kB / 0.7095 GB, free: 9.832 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.2169, allocations: 1.757 MB / 0.7112 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.2173, allocations: 0.7234 MB / 0.7119 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.734e-05/0.2174, allocations: 28.64 kB / 0.712 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.679e-05/0.2174, allocations: 39.42 kB / 0.712 GB, free: 7.152 MB / 0.5294 GB Notification: Performance of SimCode: time 5.61e-07/0.2174, allocations: 0 / 0.712 GB, free: 7.152 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.249, allocations: 3.757 MB / 0.7157 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.19, allocations: 5.984 kB / 0.7157 GB, free: 3.539 MB / 0.5294 GB " [Timeout remaining time 649] (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: 14.822839622851461] Failed to read output from testmodel.py, exit status != 0: 11.301428989041597 11.328986053 11.117518475 Calling exit ...