Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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: "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00628/0.00628, allocations: 104.1 kB / 15.74 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 196.5 kB / 16.67 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07359/0.07359, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 56.12 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09311, allocations: 53.61 MB / 478.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004624/0.09777, allocations: 3.439 MB / 481.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005439/0.1032, allocations: 4.732 MB / 486.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003668/0.1036, allocations: 4 kB / 486.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004624/0.1041, allocations: 111 kB / 486.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.1055, allocations: 447.7 kB / 487 MB, free: 13.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.1067, allocations: 0.5329 MB / 487.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007864/0.1075, allocations: 0.5844 MB / 488.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004782/0.108, allocations: 364.4 kB / 488.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003913/0.1084, allocations: 291.1 kB / 488.8 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004583/0.1089, allocations: 298.9 kB / 489 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.816e-05/0.109, allocations: 52 kB / 489.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.1102, allocations: 475.3 kB / 489.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.1103, allocations: 127.6 kB / 489.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002963/0.1106, allocations: 278.7 kB / 490 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.1123, allocations: 1.036 MB / 491 MB, free: 9.496 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1123, allocations: 0 / 491 MB, free: 9.496 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.967e-06/0.1123, allocations: 0 / 491 MB, free: 9.496 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.957e-05/0.1124, allocations: 3.938 kB / 491 MB, free: 9.492 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001492/0.1139, allocations: 0.8614 MB / 491.9 MB, free: 8.582 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1139, allocations: 8.031 kB / 491.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.906e-05/0.114, allocations: 90.7 kB / 492 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003707/0.1144, allocations: 88.09 kB / 492 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000537/0.1149, allocations: 374.3 kB / 492.4 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.115, allocations: 29.38 kB / 492.4 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.36e-05/0.1151, allocations: 48.38 kB / 492.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007198/0.1158, allocations: 458.5 kB / 492.9 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1158, allocations: 0 / 492.9 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.545e-05/0.1159, allocations: 16 kB / 492.9 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.1159, allocations: 19.92 kB / 493 MB, free: 7.422 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007617/0.1167, allocations: 0.5115 MB / 493.5 MB, free: 6.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.119, allocations: 1.533 MB / 495 MB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007209/0.1197, allocations: 366.6 kB / 495.4 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.1199, allocations: 120.8 kB / 495.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00206/0.122, allocations: 1.573 MB / 497.1 MB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.122, allocations: 34.5 kB / 497.1 MB, free: 2.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 2.845e-06/0.122, allocations: 0 / 497.1 MB, free: 2.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01502/0.137, allocations: 2.331 MB / 499.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.1371, allocations: 59.34 kB / 499.5 MB, free: 500 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003382/0.1375, allocations: 300.4 kB / 499.8 MB, free: 184 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.1375, allocations: 33.7 kB / 499.8 MB, free: 144 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.1377, allocations: 279.4 kB / 0.4884 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.614e-05/0.1378, allocations: 110.4 kB / 0.4885 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.138, allocations: 78.12 kB / 0.4885 GB, free: 15.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1381, allocations: 342.8 kB / 0.4889 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.1383, allocations: 136.8 kB / 0.489 GB, free: 15.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.1386, allocations: 260 kB / 0.4892 GB, free: 14.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005763/0.1392, allocations: 424.8 kB / 0.4897 GB, free: 14.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.1392, allocations: 4 kB / 0.4897 GB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004058/0.1433, allocations: 0.8196 MB / 0.4905 GB, free: 13.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.1433, allocations: 8 kB / 0.4905 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1434, allocations: 4 kB / 0.4905 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003583/0.1469, allocations: 409.6 kB / 0.4909 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.1472, allocations: 83.91 kB / 0.4909 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00628/0.1535, allocations: 3.973 MB / 0.4948 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.1539, allocations: 16 kB / 0.4948 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.523e-05/0.154, allocations: 28.03 kB / 0.4949 GB, free: 8.781 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002413/0.1543, allocations: 165.7 kB / 0.495 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.1544, allocations: 39.5 kB / 0.4951 GB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005019/0.1594, allocations: 0.8272 MB / 0.4959 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1594, allocations: 4 kB / 0.4959 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1594, allocations: 4 kB / 0.4959 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.1595, allocations: 3.984 kB / 0.4959 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008349/0.1603, allocations: 0.6271 MB / 0.4965 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.1603, allocations: 7.938 kB / 0.4965 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.1605, allocations: 47.98 kB / 0.4965 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00489/0.1654, allocations: 490.2 kB / 0.497 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-05/0.1655, allocations: 15.94 kB / 0.497 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007047/0.1725, allocations: 5.303 MB / 0.5022 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.1726, allocations: 4 kB / 0.5022 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1926/0.3652, allocations: 1.119 MB / 0.5033 GB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.3654, allocations: 113.8 kB / 0.5034 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.909e-05/0.3654, allocations: 9.109 kB / 0.5034 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.3657, allocations: 12.42 kB / 0.5034 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3659, allocations: 46.23 kB / 0.5035 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.933e-05/0.3659, allocations: 14.28 kB / 0.5035 GB, free: 33.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002224/0.3661, allocations: 205.9 kB / 0.5037 GB, free: 33.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3662, allocations: 1.312 kB / 0.5037 GB, free: 33.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008621/0.367, allocations: 233.9 kB / 0.5039 GB, free: 33.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006042/0.3731, allocations: 1.852 MB / 0.5057 GB, free: 32.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.3745, allocations: 0.6969 MB / 0.5064 GB, free: 32.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.3745, allocations: 1.094 kB / 0.5064 GB, free: 32.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008457/0.3754, allocations: 0.6103 MB / 0.507 GB, free: 32.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006915/0.3761, allocations: 99.62 kB / 0.5071 GB, free: 32.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.3876, allocations: 4.597 MB / 0.5116 GB, free: 30.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.388, allocations: 0.8318 MB / 0.5124 GB, free: 29.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002963/0.3883, allocations: 75.33 kB / 0.5125 GB, free: 29.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002269/0.3885, allocations: 177.9 kB / 0.5126 GB, free: 29.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3885, allocations: 1.156 kB / 0.5126 GB, free: 29.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04527/0.4338, allocations: 15.62 MB / 0.5279 GB, free: 23.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.46, allocations: 15.38 kB / 0.5279 GB, free: 23.91 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)