Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.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.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",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.006599/0.006599, allocations: 102 kB / 15.73 MB, free: 6.051 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.001477/0.001477, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08109/0.08109, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 64.36 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1112, allocations: 53.61 MB / 478.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004822/0.1161, allocations: 2.974 MB / 481.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007545/0.1236, allocations: 6.281 MB / 487.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003073/0.124, allocations: 7.938 kB / 487.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005026/0.1245, allocations: 149.7 kB / 487.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006524/0.1252, allocations: 258 kB / 487.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002249/0.1274, allocations: 0.9596 MB / 488.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006533/0.1281, allocations: 498.6 kB / 489.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.1284, allocations: 152.5 kB / 489.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.1286, allocations: 239.2 kB / 489.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.1289, allocations: 239.2 kB / 490 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.115e-05/0.129, allocations: 24 kB / 490 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.1303, allocations: 0.5499 MB / 490.6 MB, free: 9.934 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.1305, allocations: 87.67 kB / 490.7 MB, free: 9.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.1307, allocations: 183.1 kB / 490.8 MB, free: 9.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002292/0.133, allocations: 1.016 MB / 491.9 MB, free: 8.648 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.133, allocations: 4 kB / 491.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.133, allocations: 0 / 491.9 MB, free: 8.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.133, allocations: 0 / 491.9 MB, free: 8.645 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001427/0.1345, allocations: 0.7478 MB / 492.6 MB, free: 7.844 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.1345, allocations: 12.03 kB / 492.6 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.511e-05/0.1346, allocations: 62.72 kB / 492.7 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005926/0.1352, allocations: 108.2 kB / 492.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007014/0.136, allocations: 375.9 kB / 493.2 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.136, allocations: 16.81 kB / 493.2 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.169e-05/0.136, allocations: 23.94 kB / 493.2 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006523/0.1367, allocations: 385.8 kB / 493.6 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.1367, allocations: 0 / 493.6 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.1368, allocations: 8 kB / 493.6 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.1368, allocations: 8 kB / 493.6 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008774/0.1377, allocations: 0.5436 MB / 494.1 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.1396, allocations: 1.415 MB / 495.6 MB, free: 4.766 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.1399, allocations: 167.4 kB / 495.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.1401, allocations: 92.83 kB / 495.8 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002312/0.1424, allocations: 1.908 MB / 497.7 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.1425, allocations: 34.5 kB / 497.7 MB, free: 2.301 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 2.876e-06/0.1425, allocations: 0 / 497.7 MB, free: 2.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004714/0.143, allocations: 221.2 kB / 498 MB, free: 2.078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.143, allocations: 51.41 kB / 498 MB, free: 2.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.1434, allocations: 381.5 kB / 498.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.1434, allocations: 25.7 kB / 498.4 MB, free: 1.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.1436, allocations: 235.4 kB / 498.6 MB, free: 1.367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.036e-05/0.1437, allocations: 39.36 kB / 498.7 MB, free: 1.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.1438, allocations: 69.61 kB / 498.7 MB, free: 1.254 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.144, allocations: 346.8 kB / 499.1 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.1441, allocations: 63.95 kB / 499.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.1445, allocations: 244.8 kB / 499.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/0.145, allocations: 344.4 kB / 499.7 MB, free: 92 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.145, allocations: 0 / 499.7 MB, free: 92 kB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005562/0.1456, allocations: 345.3 kB / 0.4883 GB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1456, allocations: 8 kB / 0.4883 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.1456, allocations: 8 kB / 0.4884 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.1457, allocations: 8 kB / 0.4884 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.1459, allocations: 79.84 kB / 0.4884 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.1459, allocations: 19.86 kB / 0.4885 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.1461, allocations: 35.59 kB / 0.4885 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.98e-05/0.1462, allocations: 24.08 kB / 0.4885 GB, free: 15.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (35): * Single equations (assignments): 35 * 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.0001444/0.1463, allocations: 157.9 kB / 0.4887 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.814e-05/0.1464, allocations: 35.61 kB / 0.4887 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005035/0.1469, allocations: 287 kB / 0.489 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1469, allocations: 0 / 0.489 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1469, allocations: 7.938 kB / 0.489 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1469, allocations: 0 / 0.489 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000628/0.1475, allocations: 0.6274 MB / 0.4896 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1476, allocations: 4 kB / 0.4896 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.906e-05/0.1476, allocations: 11.98 kB / 0.4896 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1476, allocations: 4.188 kB / 0.4896 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.1476, allocations: 4 kB / 0.4896 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.095e-06/0.1477, allocations: 11.92 kB / 0.4896 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1477, allocations: 0 / 0.4896 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.1479, allocations: 177 kB / 0.4898 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.148, allocations: 116.6 kB / 0.4899 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.122e-05/0.1481, allocations: 19.92 kB / 0.4899 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.311e-05/0.1482, allocations: 3.938 kB / 0.4899 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.17e-05/0.1482, allocations: 4 kB / 0.4899 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.1482, allocations: 4 kB / 0.4899 GB, free: 13.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00037/0.1486, allocations: 319.1 kB / 0.4902 GB, free: 13.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1486, allocations: 7.938 kB / 0.4903 GB, free: 13.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006199/0.1492, allocations: 163.9 kB / 0.4904 GB, free: 13.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (6): * Single equations (assignments): 6 * 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.0009755/0.1502, allocations: 0.9164 MB / 0.4913 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003233/0.1505, allocations: 161.1 kB / 0.4915 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1505, allocations: 0 / 0.4915 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.924e-05/0.1506, allocations: 32.48 kB / 0.4915 GB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.1511, allocations: 96.77 kB / 0.4916 GB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.1552, allocations: 3.23 MB / 0.4947 GB, free: 8.703 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.1556, allocations: 0.7833 MB / 0.4955 GB, free: 7.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002647/0.1558, allocations: 94.94 kB / 0.4956 GB, free: 7.801 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.156, allocations: 119.4 kB / 0.4957 GB, free: 7.684 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.156, allocations: 0 / 0.4957 GB, free: 7.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2362/0.3922, allocations: 9.703 MB / 0.5052 GB, free: 34.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.721, allocations: 6.422 kB / 0.5052 GB, free: 34.43 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)