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.005595/0.005595, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.001562/0.001562, allocations: 192 kB / 16.67 MB, free: 5.973 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08254/0.08254, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 67.84 kB / 424.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09698, allocations: 53.61 MB / 478.3 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.004204/0.1012, allocations: 2.966 MB / 481.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007175/0.1084, allocations: 6.277 MB / 487.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.1087, allocations: 7.938 kB / 487.5 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004709/0.1092, allocations: 155.2 kB / 487.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005916/0.1098, allocations: 250 kB / 487.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.112, allocations: 0.9471 MB / 488.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006793/0.1127, allocations: 490.6 kB / 489.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.113, allocations: 176.4 kB / 489.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.1132, allocations: 227.3 kB / 489.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.1136, allocations: 247.1 kB / 490 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.545e-05/0.1137, allocations: 24 kB / 490 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001391/0.1151, allocations: 0.5538 MB / 490.6 MB, free: 9.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.1152, allocations: 83.69 kB / 490.7 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.1154, allocations: 179.1 kB / 490.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00166/0.1171, allocations: 1.023 MB / 491.9 MB, free: 8.621 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1171, allocations: 4 kB / 491.9 MB, free: 8.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1171, allocations: 0 / 491.9 MB, free: 8.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1171, allocations: 0 / 491.9 MB, free: 8.617 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.001122/0.1183, allocations: 0.7701 MB / 492.6 MB, free: 7.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1183, allocations: 8.031 kB / 492.6 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.349e-05/0.1184, allocations: 54.73 kB / 492.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/0.1189, allocations: 108.4 kB / 492.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005955/0.1195, allocations: 388.1 kB / 493.2 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.1196, allocations: 16.81 kB / 493.2 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.1196, allocations: 23.94 kB / 493.2 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005981/0.1202, allocations: 381.8 kB / 493.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1202, allocations: 4 kB / 493.6 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.1203, allocations: 8 kB / 493.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1203, allocations: 4 kB / 493.6 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008518/0.1212, allocations: 0.5476 MB / 494.2 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.123, allocations: 1.403 MB / 495.6 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.1234, allocations: 175.3 kB / 495.7 MB, free: 4.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.1236, allocations: 92.83 kB / 495.8 MB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00235/0.126, allocations: 1.896 MB / 497.7 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.126, allocations: 42.56 kB / 497.8 MB, free: 2.258 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.774e-06/0.126, allocations: 7.938 kB / 497.8 MB, free: 2.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.000493/0.1265, allocations: 217.3 kB / 498 MB, free: 2.031 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.1266, allocations: 55.34 kB / 498 MB, free: 1.965 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.127, allocations: 381.5 kB / 498.4 MB, free: 1.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.127, allocations: 25.7 kB / 498.4 MB, free: 1.551 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.1272, allocations: 231.9 kB / 498.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.576e-05/0.1273, allocations: 51.62 kB / 498.7 MB, free: 1.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.955e-05/0.1274, allocations: 69.64 kB / 498.8 MB, free: 1.195 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1275, allocations: 350.8 kB / 499.1 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.1277, allocations: 59.97 kB / 499.2 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.1279, allocations: 244.8 kB / 499.4 MB, free: 468 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.1284, allocations: 344.5 kB / 499.8 MB, free: 32 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1284, allocations: 0 / 499.8 MB, free: 32 kB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005693/0.1289, allocations: 348.9 kB / 0.4884 GB, free: 15.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.129, allocations: 4 kB / 0.4884 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.129, allocations: 8 kB / 0.4884 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.129, allocations: 12.7 kB / 0.4884 GB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.1293, allocations: 71.91 kB / 0.4885 GB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.687e-05/0.1293, allocations: 19.88 kB / 0.4885 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.1295, allocations: 43.73 kB / 0.4885 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.1295, allocations: 20 kB / 0.4885 GB, free: 15.51 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.0001605/0.1297, allocations: 157.6 kB / 0.4887 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.1298, allocations: 35.77 kB / 0.4887 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005356/0.1303, allocations: 287.1 kB / 0.489 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1303, allocations: 4 kB / 0.489 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.1303, allocations: 7.922 kB / 0.489 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1304, allocations: 0 / 0.489 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007338/0.1311, allocations: 0.6392 MB / 0.4896 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1311, allocations: 0 / 0.4896 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.1312, allocations: 8 kB / 0.4896 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1312, allocations: 4 kB / 0.4897 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.1312, allocations: 8 kB / 0.4897 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.1312, allocations: 3.984 kB / 0.4897 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1312, allocations: 0 / 0.4897 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.1315, allocations: 177.1 kB / 0.4898 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.1316, allocations: 116.9 kB / 0.4899 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.442e-05/0.1316, allocations: 8.078 kB / 0.49 GB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.1317, allocations: 8 kB / 0.49 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.1318, allocations: 15.92 kB / 0.49 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.1318, allocations: 4 kB / 0.49 GB, free: 13.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003553/0.1322, allocations: 315.1 kB / 0.4903 GB, free: 13.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1322, allocations: 0 / 0.4903 GB, free: 13.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000581/0.1327, allocations: 175.4 kB / 0.4904 GB, free: 13.4 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.0009769/0.1337, allocations: 0.9162 MB / 0.4913 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003401/0.1341, allocations: 165.2 kB / 0.4915 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1341, allocations: 3.938 kB / 0.4915 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.1341, allocations: 27.92 kB / 0.4915 GB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.1347, allocations: 97.83 kB / 0.4916 GB, free: 12.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003992/0.1387, allocations: 3.249 MB / 0.4948 GB, free: 8.613 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.1391, allocations: 0.7717 MB / 0.4955 GB, free: 7.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.1394, allocations: 106.9 kB / 0.4957 GB, free: 7.711 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.1396, allocations: 123.3 kB / 0.4958 GB, free: 7.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1396, allocations: 0 / 0.4958 GB, free: 7.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2207/0.3604, allocations: 9.694 MB / 0.5052 GB, free: 34.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.102/8.463, allocations: 3.703 kB / 0.5052 GB, free: 34.68 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)