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.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.0008118/0.0008118, 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.0009083/0.0009083, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8898/0.8898, allocations: 177.1 MB / 202.8 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7079/0.7079, allocations: 154.6 MB / 413.7 MB, free: 0.8125 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 master/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_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 1.203e-06/1.203e-06, allocations: 0 / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.383e-05/1.503e-05, allocations: 4.672 kB / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001996/0.002011, allocations: 1.651 MB / 0.6196 GB, free: 12.11 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0006735/0.002684, allocations: 0.5766 MB / 0.6202 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.245e-05/0.002757, allocations: 7.938 kB / 0.6202 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.002908, allocations: 27.72 kB / 0.6202 GB, free: 11.49 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.003117, allocations: 67.67 kB / 0.6203 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.00329, allocations: 75.78 kB / 0.6204 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.003435, allocations: 139.5 kB / 0.6205 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.003561, allocations: 33.66 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.003711, allocations: 79.73 kB / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.538e-05/0.003787, allocations: 47.88 kB / 0.6207 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.003808, allocations: 8 kB / 0.6207 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.944e-05/0.003867, allocations: 31.92 kB / 0.6207 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 6.915e-05/0.003936, allocations: 51.83 kB / 0.6207 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.003977, allocations: 31.86 kB / 0.6208 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.004155, allocations: 151.5 kB / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004157, allocations: 0 / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of FrontEnd: time 7.01e-07/0.004158, allocations: 0 / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.004161, allocations: 0 / 0.6209 GB, free: 10.78 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.0004394/0.004601, allocations: 405.2 kB / 0.6213 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.004637, allocations: 9.469 kB / 0.6213 GB, free: 10.35 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.023e-05/0.004667, allocations: 38.75 kB / 0.6214 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.00478, allocations: 32.83 kB / 0.6214 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.005004, allocations: 181.2 kB / 0.6216 GB, free: 10.07 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.005015, allocations: 8.375 kB / 0.6216 GB, free: 10.06 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.005e-05/0.005025, allocations: 8.312 kB / 0.6216 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.005221, allocations: 157.6 kB / 0.6217 GB, free: 9.879 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.005227, allocations: 192 / 0.6217 GB, free: 9.879 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.00524, allocations: 12.12 kB / 0.6217 GB, free: 9.867 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.005244, allocations: 4 kB / 0.6217 GB, free: 9.863 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.005357, allocations: 63.88 kB / 0.6218 GB, free: 9.801 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003809/0.005738, allocations: 339.6 kB / 0.6221 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 7.704e-05/0.005815, allocations: 38.55 kB / 0.6222 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.365e-05/0.005869, allocations: 28.91 kB / 0.6222 GB, free: 9.348 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.005883, allocations: 3.984 kB / 0.6222 GB, free: 9.344 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.006059, allocations: 152.4 kB / 0.6223 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.00606, allocations: 0 / 0.6223 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002512/0.006311, allocations: 117.5 kB / 0.6224 GB, free: 9.043 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.006345, allocations: 81.05 kB / 0.6225 GB, free: 8.945 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.006521, allocations: 269.7 kB / 0.6228 GB, free: 8.676 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.006535, allocations: 25.7 kB / 0.6228 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.006602, allocations: 128 kB / 0.6229 GB, free: 8.516 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.006618, allocations: 11.94 kB / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.006643, allocations: 13.72 kB / 0.623 GB, free: 8.484 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.00673, allocations: 330.8 kB / 0.6233 GB, free: 8.152 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.257e-05/0.006783, allocations: 27.91 kB / 0.6233 GB, free: 8.125 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.706e-05/0.00685, allocations: 73.11 kB / 0.6234 GB, free: 8.035 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.006963, allocations: 66.56 kB / 0.6234 GB, free: 7.961 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006965, allocations: 0 / 0.6234 GB, free: 7.961 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001432/0.007108, allocations: 105.5 kB / 0.6235 GB, free: 7.852 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.007119, allocations: 4 kB / 0.6235 GB, free: 7.848 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.007124, allocations: 7.922 kB / 0.6235 GB, free: 7.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.007137, allocations: 4 kB / 0.6235 GB, free: 7.836 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.677e-05/0.007204, allocations: 11.98 kB / 0.6236 GB, free: 7.824 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.007209, allocations: 3.938 kB / 0.6236 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.351e-05/0.007253, allocations: 20.22 kB / 0.6236 GB, free: 7.801 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.007259, allocations: 0 / 0.6236 GB, free: 7.801 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 7.63e-05/0.007335, allocations: 130.8 kB / 0.6237 GB, free: 7.664 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/0.007352, allocations: 23.92 kB / 0.6237 GB, free: 7.641 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.007377, allocations: 17.34 kB / 0.6237 GB, free: 7.625 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.007379, allocations: 4 kB / 0.6237 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.007383, allocations: 0 / 0.6237 GB, free: 7.621 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.007388, allocations: 7.922 kB / 0.6238 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.007493, allocations: 168.7 kB / 0.6239 GB, free: 7.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.007495, allocations: 7.938 kB / 0.6239 GB, free: 7.398 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.912e-05/0.007524, allocations: 7.984 kB / 0.6239 GB, free: 7.391 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.007526, allocations: 7.984 kB / 0.6239 GB, free: 7.383 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.007532, allocations: 0 / 0.6239 GB, free: 7.383 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.007533, allocations: 4 kB / 0.6239 GB, free: 7.379 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.007533, allocations: 0 / 0.6239 GB, free: 7.379 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.007678, allocations: 128.8 kB / 0.6241 GB, free: 7.234 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.517e-05/0.007693, allocations: 15.91 kB / 0.6241 GB, free: 7.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.007706, allocations: 0 / 0.6241 GB, free: 7.219 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.215e-05/0.007738, allocations: 11.98 kB / 0.6241 GB, free: 7.207 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.492e-05/0.007773, allocations: 7.922 kB / 0.6241 GB, free: 7.199 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.007789, allocations: 8 kB / 0.6241 GB, free: 7.191 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001238/0.007913, allocations: 197.2 kB / 0.6243 GB, free: 6.996 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9e-08/0.007913, allocations: 0 / 0.6243 GB, free: 6.996 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001448/0.008058, allocations: 16 kB / 0.6243 GB, free: 6.98 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.0004119/0.00847, allocations: 0.6893 MB / 0.625 GB, free: 6.266 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001495/0.00862, allocations: 51.94 kB / 0.625 GB, free: 6.215 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.008621, allocations: 0 / 0.625 GB, free: 6.215 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.369e-05/0.008675, allocations: 31.91 kB / 0.6251 GB, free: 6.184 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.008865, allocations: 44.77 kB / 0.6251 GB, free: 6.148 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.01016, allocations: 1.754 MB / 0.6268 GB, free: 4.289 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.952e-05/0.01023, allocations: 114.2 kB / 0.6269 GB, free: 4.16 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.926e-05/0.01028, allocations: 12.48 kB / 0.6269 GB, free: 4.148 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.847e-05/0.01034, allocations: 48.47 kB / 0.627 GB, free: 4.102 MB / 0.5886 GB Notification: Performance of SimCode: time 7.42e-07/0.01034, allocations: 0 / 0.627 GB, free: 4.102 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.02744, allocations: 4.395 MB / 0.6313 GB, free: 15.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.947/6.975, allocations: 8 kB / 0.6313 GB, free: 15.88 MB / 0.6042 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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: 9.688885532319546] Failed to read output from testmodel.py, exit status != 0: 7.0570081770420074 7.068718732 7.062133302 Calling exit ...