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.0009008/0.0009008, allocations: 109.9 kB / 18.93 MB, free: 1.27 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.0009564/0.0009564, allocations: 221.7 kB / 22.26 MB, free: 3.691 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.9646/0.9646, allocations: 230.6 MB / 256 MB, free: 9.805 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.7857/0.7857, allocations: 203.8 MB / 0.5042 GB, free: 10.74 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.0007306/0.0007306, allocations: 60.53 kB / 0.7182 GB, free: 4.34 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5143/0.515, allocations: 102 MB / 0.8178 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002729/0.5177, allocations: 1.677 MB / 0.8195 GB, free: 92 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009548/0.5187, allocations: 0.6274 MB / 0.8201 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.722e-05/0.5188, allocations: 7 kB / 0.8201 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002055/0.519, allocations: 31.2 kB / 0.8201 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.5192, allocations: 63.83 kB / 0.8202 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.5194, allocations: 83.36 kB / 0.8203 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.5196, allocations: 129.5 kB / 0.8204 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.5198, allocations: 38.55 kB / 0.8204 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.5199, allocations: 64.03 kB / 0.8205 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.52, allocations: 68 kB / 0.8206 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.5201, allocations: 7.969 kB / 0.8206 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.597e-05/0.5201, allocations: 31.58 kB / 0.8206 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.173e-05/0.5202, allocations: 47.42 kB / 0.8206 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.837e-05/0.5203, allocations: 58.83 kB / 0.8207 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.5205, allocations: 150.1 kB / 0.8208 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.5205, allocations: 0.6562 kB / 0.8208 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.575e-06/0.5205, allocations: 0 / 0.8208 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.5205, allocations: 4 kB / 0.8208 GB, free: 15.26 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.0005077/0.521, allocations: 402.5 kB / 0.8212 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.5211, allocations: 10.66 kB / 0.8212 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.218e-05/0.5211, allocations: 37.95 kB / 0.8213 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.5212, allocations: 29.73 kB / 0.8213 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004687/0.5217, allocations: 192.9 kB / 0.8215 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.5217, allocations: 4.312 kB / 0.8215 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.921e-05/0.5217, allocations: 7.844 kB / 0.8215 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.522, allocations: 109.5 kB / 0.8216 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.5221, allocations: 0 / 0.8216 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.5221, allocations: 0.75 kB / 0.8216 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.5221, allocations: 2.375 kB / 0.8216 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.5222, allocations: 66.47 kB / 0.8217 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006348/0.5229, allocations: 352 kB / 0.822 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.914e-05/0.523, allocations: 37.73 kB / 0.822 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.65e-05/0.5231, allocations: 31.73 kB / 0.8221 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.5231, allocations: 1.188 kB / 0.8221 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.5233, allocations: 100.9 kB / 0.8222 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.5233, allocations: 0 / 0.8222 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002916/0.5236, allocations: 131.1 kB / 0.8223 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.5236, allocations: 77.77 kB / 0.8224 GB, free: 14.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.5239, allocations: 257.7 kB / 0.8226 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.5239, allocations: 26.41 kB / 0.8226 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.334e-05/0.5239, allocations: 134 kB / 0.8228 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.092e-05/0.524, allocations: 19.36 kB / 0.8228 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.524, allocations: 19.5 kB / 0.8228 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.5241, allocations: 327.7 kB / 0.8231 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.893e-05/0.5242, allocations: 23.77 kB / 0.8231 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.804e-05/0.5242, allocations: 46.27 kB / 0.8232 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.5244, allocations: 70.86 kB / 0.8233 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5244, allocations: 3.938 kB / 0.8233 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001586/0.5245, allocations: 101.8 kB / 0.8234 GB, free: 13.27 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.5245, allocations: 12.38 kB / 0.8234 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.5246, allocations: 0 / 0.8234 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.5246, allocations: 7.344 kB / 0.8234 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.952e-05/0.5246, allocations: 9.953 kB / 0.8234 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.5247, allocations: 2 kB / 0.8234 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.981e-05/0.5247, allocations: 9.906 kB / 0.8234 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.5247, allocations: 3.094 kB / 0.8234 GB, free: 13.26 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 9.236e-05/0.5248, allocations: 130.8 kB / 0.8235 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.5248, allocations: 24.2 kB / 0.8235 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/0.5249, allocations: 23.16 kB / 0.8236 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.5249, allocations: 1.031 kB / 0.8236 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5249, allocations: 1.406 kB / 0.8236 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5249, allocations: 0 / 0.8236 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.525, allocations: 186.6 kB / 0.8237 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.525, allocations: 0 / 0.8237 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.5251, allocations: 13.3 kB / 0.8238 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5251, allocations: 2.25 kB / 0.8238 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.5251, allocations: 7.938 kB / 0.8238 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.5251, allocations: 6.719 kB / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5251, allocations: 3.938 kB / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.5253, allocations: 116.5 kB / 0.8239 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.939e-05/0.5253, allocations: 16.94 kB / 0.8239 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.5253, allocations: 5.406 kB / 0.8239 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.82e-05/0.5253, allocations: 15.02 kB / 0.8239 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.5254, allocations: 8.656 kB / 0.8239 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.5254, allocations: 4.188 kB / 0.8239 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001468/0.5255, allocations: 187.1 kB / 0.8241 GB, free: 12.71 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5255, allocations: 7.875 kB / 0.8241 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001665/0.5257, allocations: 23.28 kB / 0.8241 GB, free: 12.7 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.0005157/0.5262, allocations: 0.6732 MB / 0.8248 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001938/0.5264, allocations: 63.36 kB / 0.8249 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5264, allocations: 0 / 0.8249 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.325e-05/0.5265, allocations: 31.67 kB / 0.8249 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.5267, allocations: 42.58 kB / 0.8249 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.5286, allocations: 1.766 MB / 0.8267 GB, free: 10.68 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.5289, allocations: 0.7235 MB / 0.8274 GB, free: 9.973 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.073e-05/0.529, allocations: 16.48 kB / 0.8274 GB, free: 9.973 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.087e-05/0.529, allocations: 47.67 kB / 0.8274 GB, free: 9.938 MB / 0.6198 GB Notification: Performance of SimCode: time 8.61e-07/0.529, allocations: 0 / 0.8274 GB, free: 9.938 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.5536, allocations: 3.749 MB / 0.8311 GB, free: 9.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/7.444, allocations: 4.984 kB / 0.8311 GB, free: 9.316 MB / 0.6198 GB " [Timeout remaining time 652] (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.356417628005147] Failed to read output from testmodel.py, exit status != 0: 7.524133866885677 7.539640531 7.016933217 Calling exit ...