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.0008369/0.0008369, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009168/0.0009168, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9081/0.9081, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.7185/0.7185, allocations: 154.6 MB / 413.7 MB, free: 0.8047 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 3.016e-06/3.016e-06, allocations: 0 / 0.618 GB, free: 13.72 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.763e-05, allocations: 2.281 kB / 0.618 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003366/0.003393, allocations: 1.648 MB / 0.6196 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.004505, allocations: 0.5804 MB / 0.6202 GB, free: 11.47 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.004617, allocations: 7.938 kB / 0.6202 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0002192/0.004836, allocations: 27.73 kB / 0.6202 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0002939/0.00513, allocations: 63.05 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.005392, allocations: 83.72 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.005603, allocations: 127.5 kB / 0.6205 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001704/0.005773, allocations: 33.66 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.005991, allocations: 79.8 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.006108, allocations: 55.81 kB / 0.6207 GB, free: 11 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.006136, allocations: 8 kB / 0.6207 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 7.917e-05/0.006215, allocations: 35.86 kB / 0.6207 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 9.528e-05/0.006311, allocations: 47.83 kB / 0.6207 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.006359, allocations: 27.92 kB / 0.6208 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.00661, allocations: 155.4 kB / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.006614, allocations: 0 / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.443e-06/0.006616, allocations: 0 / 0.6209 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.006621, allocations: 0 / 0.6209 GB, free: 10.73 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.0005866/0.007208, allocations: 397.4 kB / 0.6213 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.007251, allocations: 9.469 kB / 0.6213 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.007287, allocations: 38.75 kB / 0.6213 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.007419, allocations: 28.78 kB / 0.6214 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.007688, allocations: 197.1 kB / 0.6216 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.007699, allocations: 4.375 kB / 0.6216 GB, free: 10 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.007709, allocations: 4.375 kB / 0.6216 GB, free: 10 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.007927, allocations: 173.5 kB / 0.6217 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.007933, allocations: 192 / 0.6217 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.007952, allocations: 8.125 kB / 0.6217 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.007957, allocations: 0 / 0.6217 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001219/0.008078, allocations: 63.94 kB / 0.6218 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004229/0.008501, allocations: 335.6 kB / 0.6221 GB, free: 9.371 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 8.434e-05/0.008586, allocations: 42.55 kB / 0.6222 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.769e-05/0.008643, allocations: 28.91 kB / 0.6222 GB, free: 9.289 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.008659, allocations: 3.984 kB / 0.6222 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.008842, allocations: 148.4 kB / 0.6223 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 7.91e-07/0.008843, allocations: 0 / 0.6223 GB, free: 9.109 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002683/0.009111, allocations: 125.5 kB / 0.6225 GB, free: 8.98 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.009151, allocations: 81.05 kB / 0.6225 GB, free: 8.883 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004555/0.009607, allocations: 261.6 kB / 0.6228 GB, free: 8.621 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.00962, allocations: 29.7 kB / 0.6228 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.34e-05/0.009683, allocations: 132 kB / 0.6229 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.009699, allocations: 7.938 kB / 0.6229 GB, free: 8.445 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.009731, allocations: 13.72 kB / 0.623 GB, free: 8.426 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.443e-05/0.009816, allocations: 326.8 kB / 0.6233 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.863e-05/0.009875, allocations: 31.97 kB / 0.6233 GB, free: 8.066 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.819e-05/0.009953, allocations: 77.05 kB / 0.6234 GB, free: 7.973 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.01006, allocations: 62.53 kB / 0.6234 GB, free: 7.902 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.01006, allocations: 0 / 0.6234 GB, free: 7.902 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001475/0.01021, allocations: 109.5 kB / 0.6235 GB, free: 7.789 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.01022, allocations: 4 kB / 0.6235 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01023, allocations: 0 / 0.6235 GB, free: 7.785 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.01024, allocations: 3.984 kB / 0.6235 GB, free: 7.781 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.349e-05/0.01032, allocations: 19.86 kB / 0.6236 GB, free: 7.762 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.01032, allocations: 7.938 kB / 0.6236 GB, free: 7.754 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.568e-05/0.01037, allocations: 20.03 kB / 0.6236 GB, free: 7.734 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.01037, allocations: 0 / 0.6236 GB, free: 7.734 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.815e-05/0.01045, allocations: 130.8 kB / 0.6237 GB, free: 7.598 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.01047, allocations: 15.91 kB / 0.6237 GB, free: 7.582 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.0105, allocations: 13.34 kB / 0.6237 GB, free: 7.57 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.0105, allocations: 0 / 0.6237 GB, free: 7.57 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.01051, allocations: 4 kB / 0.6237 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.01051, allocations: 7.922 kB / 0.6237 GB, free: 7.559 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001061/0.01062, allocations: 164.7 kB / 0.6239 GB, free: 7.355 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.01062, allocations: 0 / 0.6239 GB, free: 7.355 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.622e-05/0.01065, allocations: 19.98 kB / 0.6239 GB, free: 7.336 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.01065, allocations: 0 / 0.6239 GB, free: 7.336 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.01066, allocations: 7.984 kB / 0.6239 GB, free: 7.328 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.01066, allocations: 0 / 0.6239 GB, free: 7.328 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.01066, allocations: 0 / 0.6239 GB, free: 7.328 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.01083, allocations: 132.8 kB / 0.6241 GB, free: 7.18 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.01085, allocations: 11.91 kB / 0.6241 GB, free: 7.168 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.01086, allocations: 0 / 0.6241 GB, free: 7.168 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.79e-05/0.0109, allocations: 15.98 kB / 0.6241 GB, free: 7.152 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.01094, allocations: 11.92 kB / 0.6241 GB, free: 7.141 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.01096, allocations: 4 kB / 0.6241 GB, free: 7.137 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001173/0.01108, allocations: 189.2 kB / 0.6243 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01108, allocations: 0 / 0.6243 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000152/0.01123, allocations: 23.94 kB / 0.6243 GB, free: 6.926 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.0004575/0.01169, allocations: 0.6857 MB / 0.625 GB, free: 6.211 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001722/0.01186, allocations: 51.94 kB / 0.625 GB, free: 6.16 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01186, allocations: 4 kB / 0.625 GB, free: 6.156 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.545e-05/0.01192, allocations: 32.16 kB / 0.6251 GB, free: 6.125 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.01213, allocations: 42.53 kB / 0.6251 GB, free: 6.086 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.01353, allocations: 1.754 MB / 0.6268 GB, free: 4.227 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.905e-05/0.0136, allocations: 110.2 kB / 0.6269 GB, free: 4.102 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.471e-05/0.01366, allocations: 12.48 kB / 0.6269 GB, free: 4.09 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.451e-05/0.01372, allocations: 52.47 kB / 0.627 GB, free: 4.039 MB / 0.5886 GB Notification: Performance of SimCode: time 7.31e-07/0.01372, allocations: 0 / 0.627 GB, free: 4.039 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.0337, allocations: 4.405 MB / 0.6313 GB, free: 15.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.012/7.045, allocations: 6.188 kB / 0.6313 GB, free: 15.82 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 & /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: 9.737756371498108] Failed to read output from testmodel.py, exit status != 0: 7.127887358888984 7.135321483 7.12701114 Calling exit ...