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.0007361/0.0007361, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.001099/0.001099, allocations: 209.2 kB / 22.24 MB, free: 3.59 MB / 13.93 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.9538/0.9538, allocations: 230.6 MB / 256 MB, free: 9.582 MB / 202.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.7758/0.7758, allocations: 203.8 MB / 0.5042 GB, free: 10.44 MB / 410.7 MB " [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: 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.0009705/0.0009705, allocations: 71.02 kB / 0.7181 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4991/0.5, allocations: 102 MB / 0.8178 GB, free: 1.031 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002169/0.5022, allocations: 1.645 MB / 0.8194 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008042/0.503, allocations: 0.5763 MB / 0.8199 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.794e-05/0.5031, allocations: 10.94 kB / 0.82 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.5033, allocations: 32.42 kB / 0.82 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.5035, allocations: 72.48 kB / 0.8201 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.5037, allocations: 73.7 kB / 0.8201 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.5038, allocations: 130.1 kB / 0.8202 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.504, allocations: 37.27 kB / 0.8203 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.5041, allocations: 62.64 kB / 0.8203 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.389e-05/0.5042, allocations: 61.19 kB / 0.8204 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.5043, allocations: 9.281 kB / 0.8204 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.742e-05/0.5043, allocations: 26.34 kB / 0.8204 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.35e-05/0.5044, allocations: 54.14 kB / 0.8205 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.652e-05/0.5045, allocations: 43.3 kB / 0.8205 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.5047, allocations: 153.8 kB / 0.8207 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.5047, allocations: 0 / 0.8207 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.924e-06/0.5047, allocations: 0 / 0.8207 GB, free: 15.16 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.5047, allocations: 1.344 kB / 0.8207 GB, free: 15.16 MB / 0.6198 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.0004841/0.5052, allocations: 400.1 kB / 0.8211 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.5052, allocations: 13 kB / 0.8211 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.594e-05/0.5052, allocations: 40.38 kB / 0.8211 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.5054, allocations: 32.69 kB / 0.8211 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.5057, allocations: 191.9 kB / 0.8213 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.5057, allocations: 3.469 kB / 0.8213 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.5057, allocations: 8.531 kB / 0.8213 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.5059, allocations: 163.1 kB / 0.8215 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.5059, allocations: 0 / 0.8215 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.5059, allocations: 4.688 kB / 0.8215 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5059, allocations: 7.281 kB / 0.8215 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.5061, allocations: 61.28 kB / 0.8216 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.5065, allocations: 340.2 kB / 0.8219 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.227e-05/0.5066, allocations: 39.19 kB / 0.8219 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.423e-05/0.5067, allocations: 28.56 kB / 0.8219 GB, free: 14.12 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.5067, allocations: 5.922 kB / 0.822 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000194/0.5069, allocations: 148.7 kB / 0.8221 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.5069, allocations: 1.125 kB / 0.8221 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002861/0.5072, allocations: 121.9 kB / 0.8222 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.5072, allocations: 79.34 kB / 0.8223 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.5074, allocations: 260.9 kB / 0.8225 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.5074, allocations: 31.11 kB / 0.8226 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.705e-05/0.5075, allocations: 126.3 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.5075, allocations: 10.02 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.5076, allocations: 18.94 kB / 0.8227 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.241e-05/0.5076, allocations: 325.5 kB / 0.823 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.909e-05/0.5077, allocations: 28.08 kB / 0.8231 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.736e-05/0.5078, allocations: 74.3 kB / 0.8231 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.5079, allocations: 74.98 kB / 0.8232 GB, free: 13.07 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5079, allocations: 3.938 kB / 0.8232 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001575/0.5081, allocations: 101.4 kB / 0.8233 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.5081, allocations: 10.38 kB / 0.8233 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.5081, allocations: 3.938 kB / 0.8233 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.5081, allocations: 5.094 kB / 0.8233 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.913e-05/0.5082, allocations: 13.45 kB / 0.8233 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.5082, allocations: 1 kB / 0.8233 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.627e-05/0.5082, allocations: 10.25 kB / 0.8233 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.5082, allocations: 2.188 kB / 0.8233 GB, free: 13 MB / 0.6198 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.864e-05/0.5083, allocations: 132.4 kB / 0.8235 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.001e-05/0.5083, allocations: 23.42 kB / 0.8235 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.03e-05/0.5084, allocations: 22.95 kB / 0.8235 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.5084, allocations: 0 / 0.8235 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.5084, allocations: 1.344 kB / 0.8235 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.5084, allocations: 6 kB / 0.8235 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.5085, allocations: 175 kB / 0.8237 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.5085, allocations: 1.375 kB / 0.8237 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.814e-05/0.5085, allocations: 8.641 kB / 0.8237 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5085, allocations: 0 / 0.8237 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.5085, allocations: 6.328 kB / 0.8237 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.5085, allocations: 0 / 0.8237 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.5085, allocations: 5.438 kB / 0.8237 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001839/0.5087, allocations: 126.1 kB / 0.8238 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.725e-05/0.5087, allocations: 17.19 kB / 0.8238 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.5088, allocations: 5.375 kB / 0.8238 GB, free: 12.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.015e-05/0.5088, allocations: 13.61 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.5088, allocations: 4.859 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.5089, allocations: 5.531 kB / 0.8239 GB, free: 12.55 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001442/0.509, allocations: 195.8 kB / 0.8241 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.509, allocations: 0 / 0.8241 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001566/0.5092, allocations: 18.5 kB / 0.8241 GB, free: 12.45 MB / 0.6198 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.0006136/0.5098, allocations: 0.6787 MB / 0.8247 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.51, allocations: 59.22 kB / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.51, allocations: 4 kB / 0.8248 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.902e-05/0.51, allocations: 26.91 kB / 0.8248 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.5102, allocations: 44.95 kB / 0.8249 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.5118, allocations: 1.76 MB / 0.8266 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.506e-05/0.5119, allocations: 107.4 kB / 0.8267 GB, free: 10.36 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.375e-05/0.512, allocations: 15.66 kB / 0.8267 GB, free: 10.36 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.498e-05/0.5121, allocations: 44.56 kB / 0.8267 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of SimCode: time 7.21e-07/0.5121, allocations: 0 / 0.8267 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.5323, allocations: 4.28 MB / 0.8309 GB, free: 9.234 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.652/7.184, allocations: 9.438 kB / 0.8309 GB, free: 9.227 MB / 0.6198 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: 10.078179014381021] Failed to read output from testmodel.py, exit status != 0: 7.264825999736786 7.276241268 6.769639601 Calling exit ...