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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 225.6 MB / 251 MB, free: 13.02 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.874/0.874, allocations: 134 MB / 440.3 MB, free: 184 kB / 334.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 73 kB / 0.6107 GB, free: 13.83 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1906, allocations: 84.72 MB / 0.6935 GB, free: 9.18 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003575/0.1942, allocations: 1.648 MB / 0.6951 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.1952, allocations: 0.561 MB / 0.6956 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.937e-05/0.1953, allocations: 4 kB / 0.6956 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.1955, allocations: 27.72 kB / 0.6956 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002726/0.1958, allocations: 71.61 kB / 0.6957 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.1959, allocations: 67.92 kB / 0.6958 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.1961, allocations: 131.5 kB / 0.6959 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1963, allocations: 37.61 kB / 0.6959 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.1965, allocations: 59.77 kB / 0.696 GB, free: 6.559 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.1966, allocations: 59.7 kB / 0.696 GB, free: 6.5 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.1966, allocations: 8 kB / 0.6961 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.1967, allocations: 27.98 kB / 0.6961 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.515e-05/0.1968, allocations: 47.83 kB / 0.6961 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 7.409e-05/0.1969, allocations: 59.55 kB / 0.6962 GB, free: 6.359 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.1972, allocations: 151.2 kB / 0.6963 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1972, allocations: 4 kB / 0.6963 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.223e-06/0.1972, allocations: 0 / 0.6963 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.1972, allocations: 0 / 0.6963 GB, free: 6.207 MB / 0.5137 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.0007599/0.198, allocations: 397.3 kB / 0.6967 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.198, allocations: 8.031 kB / 0.6967 GB, free: 5.781 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.367e-05/0.198, allocations: 16.84 kB / 0.6967 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.1984, allocations: 187.1 kB / 0.6969 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1984, allocations: 4.375 kB / 0.6969 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.1984, allocations: 8.375 kB / 0.6969 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003024/0.1987, allocations: 102 kB / 0.697 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1987, allocations: 4 kB / 0.697 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.1987, allocations: 3.984 kB / 0.697 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1988, allocations: 3.984 kB / 0.697 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002572/0.199, allocations: 67.94 kB / 0.6971 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006521/0.1997, allocations: 347.6 kB / 0.6974 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.1998, allocations: 38.55 kB / 0.6975 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.2, allocations: 40.83 kB / 0.6975 GB, free: 4.887 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2, allocations: 3.984 kB / 0.6975 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.2002, allocations: 89.09 kB / 0.6976 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.2002, allocations: 0 / 0.6976 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0004962/0.2007, allocations: 129.5 kB / 0.6977 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/0.2008, allocations: 81.05 kB / 0.6978 GB, free: 4.547 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.2011, allocations: 256.9 kB / 0.698 GB, free: 4.289 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.2011, allocations: 25.7 kB / 0.6981 GB, free: 4.258 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.999e-05/0.2012, allocations: 132 kB / 0.6982 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.2013, allocations: 15.88 kB / 0.6982 GB, free: 4.109 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.216e-05/0.2013, allocations: 17.72 kB / 0.6982 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.2015, allocations: 326.8 kB / 0.6985 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.2016, allocations: 27.91 kB / 0.6986 GB, free: 3.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.2017, allocations: 51.41 kB / 0.6986 GB, free: 3.668 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.202, allocations: 70.5 kB / 0.6987 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.202, allocations: 0 / 0.6987 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003111/0.2023, allocations: 109.5 kB / 0.6988 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2023, allocations: 4 kB / 0.6988 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2023, allocations: 0 / 0.6988 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.2023, allocations: 3.938 kB / 0.6988 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.2024, allocations: 11.98 kB / 0.6988 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.2024, allocations: 11.97 kB / 0.6988 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.834e-05/0.2025, allocations: 7.953 kB / 0.6988 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.2025, allocations: 7.984 kB / 0.6988 GB, free: 3.43 MB / 0.5137 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.0001221/0.2027, allocations: 127.8 kB / 0.699 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.2027, allocations: 19.89 kB / 0.699 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.165e-05/0.2027, allocations: 17.34 kB / 0.699 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2027, allocations: 3.938 kB / 0.699 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2027, allocations: 0 / 0.699 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.175e-06/0.2027, allocations: 0 / 0.699 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001917/0.2029, allocations: 188.7 kB / 0.6992 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2029, allocations: 0 / 0.6992 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.617e-05/0.203, allocations: 15.92 kB / 0.6992 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.203, allocations: 0 / 0.6992 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.485e-06/0.203, allocations: 4 kB / 0.6992 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.203, allocations: 3.938 kB / 0.6992 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.203, allocations: 0 / 0.6992 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.2034, allocations: 121.3 kB / 0.6993 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 3.68e-05/0.2034, allocations: 15.91 kB / 0.6993 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.2034, allocations: 11.97 kB / 0.6993 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.2035, allocations: 11.94 kB / 0.6993 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.2036, allocations: 7.984 kB / 0.6994 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.2036, allocations: 4 kB / 0.6994 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001825/0.2038, allocations: 188.5 kB / 0.6995 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.2038, allocations: 4 kB / 0.6995 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002219/0.204, allocations: 19.94 kB / 0.6996 GB, free: 2.613 MB / 0.5137 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.0002297/0.2042, allocations: 125.9 kB / 0.6997 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002921/0.2045, allocations: 55.88 kB / 0.6997 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2045, allocations: 0 / 0.6997 GB, free: 2.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.2046, allocations: 32.16 kB / 0.6998 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2049, allocations: 38.08 kB / 0.6998 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000562/0.2055, allocations: 304 kB / 0.7001 GB, free: 2.035 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.2059, allocations: 0.7197 MB / 0.7008 GB, free: 1.289 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.28e-05/0.2059, allocations: 16.48 kB / 0.7008 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.206, allocations: 15.44 kB / 0.7008 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.206, allocations: 0 / 0.7008 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of Templates: time 0.005255/0.2112, allocations: 1.784 MB / 0.7026 GB, free: 15.5 MB / 0.5294 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (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 & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.8575419476255774] Failed to read output from testmodel.py, exit status != 0: 0.2187989568337798 0.23548937900000003 0.035087738 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f90cac757b0>