Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009191/0.0009189, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009528/0.0009528, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002402/0.0002403, allocations: 4 kB / 306.7 MB, free: 1.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1113, allocations: 51.49 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.4386/0.55, allocations: 166.2 MB / 0.5121 GB, free: 5.984 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0148/0.5648, allocations: 10.08 MB / 0.522 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.5659, allocations: 23.81 kB / 0.522 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.5671, allocations: 362.2 kB / 0.5224 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007708/0.5748, allocations: 2.373 MB / 0.5247 GB, free: 9.129 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00557/0.5804, allocations: 1.899 MB / 0.5265 GB, free: 7.238 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00258/0.583, allocations: 1.427 MB / 0.5279 GB, free: 5.809 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009673/0.5839, allocations: 0.6398 MB / 0.5285 GB, free: 5.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00495/0.5889, allocations: 2.124 MB / 0.5306 GB, free: 3.031 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.5903, allocations: 0.7518 MB / 0.5314 GB, free: 2.277 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.5905, allocations: 56 kB / 0.5314 GB, free: 2.223 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3171/0.9077, allocations: 5.268 MB / 0.5366 GB, free: 6.121 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.9089, allocations: 448 kB / 0.537 GB, free: 6.121 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006129/0.9095, allocations: 244.5 kB / 0.5372 GB, free: 6.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009035/0.9186, allocations: 2.95 MB / 0.5401 GB, free: 5.871 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.9186, allocations: 0 / 0.5401 GB, free: 5.871 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.077e-06/0.9187, allocations: 2.906 kB / 0.5401 GB, free: 5.871 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.788e-05/0.9187, allocations: 4.688 kB / 0.5401 GB, free: 5.871 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.006714/0.9254, allocations: 1.811 MB / 0.5419 GB, free: 4.836 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.9255, allocations: 9.156 kB / 0.5419 GB, free: 4.836 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003606/0.9259, allocations: 149.4 kB / 0.542 GB, free: 4.797 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005384/0.9264, allocations: 128.1 kB / 0.5421 GB, free: 4.742 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.9278, allocations: 0.6636 MB / 0.5428 GB, free: 4.473 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.928, allocations: 129.3 kB / 0.5429 GB, free: 4.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.9282, allocations: 88.06 kB / 0.543 GB, free: 4.41 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/0.9307, allocations: 1.447 MB / 0.5444 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.9307, allocations: 4.781 kB / 0.5444 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.9308, allocations: 38.22 kB / 0.5445 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/0.9309, allocations: 75.61 kB / 0.5445 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002445/0.9334, allocations: 1.46 MB / 0.546 GB, free: 4.188 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00899/0.9424, allocations: 6.37 MB / 0.5522 GB, free: 16.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.9443, allocations: 0.9822 MB / 0.5531 GB, free: 16.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001413/0.9457, allocations: 1.797 MB / 0.5549 GB, free: 14.83 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.9458, allocations: 46.94 kB / 0.5549 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006916/0.9465, allocations: 109.4 kB / 0.555 GB, free: 14.73 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 3.206e-06/0.9465, allocations: 0 / 0.555 GB, free: 14.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01588/0.9624, allocations: 4.937 MB / 0.5599 GB, free: 14.18 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.097e-05/0.9625, allocations: 117 kB / 0.56 GB, free: 14.05 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.9637, allocations: 0.7761 MB / 0.5607 GB, free: 13.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.964, allocations: 48.33 kB / 0.5608 GB, free: 13.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/0.9644, allocations: 451.8 kB / 0.5612 GB, free: 13.63 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003028/0.9647, allocations: 343.8 kB / 0.5615 GB, free: 13.42 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.9647, allocations: 24.91 kB / 0.5616 GB, free: 13.42 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.965, allocations: 399.1 kB / 0.5619 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.9662, allocations: 0.6094 MB / 0.5625 GB, free: 13.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.9675, allocations: 0.9464 MB / 0.5635 GB, free: 12.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001443/0.9689, allocations: 0.7938 MB / 0.5642 GB, free: 12.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.969, allocations: 2.812 kB / 0.5642 GB, free: 12.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003854/0.9728, allocations: 1.915 MB / 0.5661 GB, free: 12.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001699/0.9746, allocations: 4.065 MB / 0.5701 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-05/0.9746, allocations: 9.25 kB / 0.5701 GB, free: 8.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.9762, allocations: 331.5 kB / 0.5704 GB, free: 8.145 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.9775, allocations: 271.3 kB / 0.5707 GB, free: 8.145 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.9791, allocations: 0.9287 MB / 0.5716 GB, free: 7.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.9807, allocations: 107.6 kB / 0.5717 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.9809, allocations: 71.08 kB / 0.5717 GB, free: 7.598 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.981, allocations: 6.094 kB / 0.5717 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003972/0.9849, allocations: 1.798 MB / 0.5735 GB, free: 7.484 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.999e-05/0.985, allocations: 11 kB / 0.5735 GB, free: 7.484 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.9865, allocations: 333.2 kB / 0.5738 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.9876, allocations: 266.6 kB / 0.5741 GB, free: 7.461 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.9892, allocations: 0.9301 MB / 0.575 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.9907, allocations: 105.9 kB / 0.5751 GB, free: 6.918 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/0.991, allocations: 73.73 kB / 0.5752 GB, free: 6.918 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001041/0.992, allocations: 412.9 kB / 0.5756 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003786/0.9924, allocations: 97.56 kB / 0.5756 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.9965, allocations: 1.987 MB / 0.5776 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.9965, allocations: 13.16 kB / 0.5776 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.9966, allocations: 0 / 0.5776 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.9966, allocations: 7.172 kB / 0.5776 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00636/1.003, allocations: 3.13 MB / 0.5807 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/1.003, allocations: 0 / 0.5807 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008364/1.004, allocations: 182.4 kB / 0.5808 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001884/1.006, allocations: 398.3 kB / 0.5812 GB, free: 5.945 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/1.006, allocations: 38.56 kB / 0.5813 GB, free: 5.945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/1.007, allocations: 0.9019 MB / 0.5821 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.007, allocations: 2.781 kB / 0.5821 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00435/1.012, allocations: 2.47 MB / 0.5845 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009928/1.013, allocations: 346.8 kB / 0.5849 GB, free: 4.566 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003839/1.013, allocations: 29.83 kB / 0.5849 GB, free: 4.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/1.014, allocations: 84.34 kB / 0.585 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/1.015, allocations: 78.19 kB / 0.5851 GB, free: 4.504 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/1.015, allocations: 54.05 kB / 0.5851 GB, free: 4.492 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001032/1.016, allocations: 0.5426 MB / 0.5856 GB, free: 4.316 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.016, allocations: 3.531 kB / 0.5856 GB, free: 4.316 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006392/1.022, allocations: 1.139 MB / 0.5868 GB, free: 4.137 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * 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 (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01095/1.033, allocations: 4.467 MB / 0.5911 GB, free: 2.105 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005554/1.039, allocations: 2.618 MB / 0.5937 GB, free: 1.488 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.039, allocations: 4.406 kB / 0.5937 GB, free: 1.488 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/1.04, allocations: 0.75 MB / 0.5944 GB, free: 1.367 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003061/1.043, allocations: 494.6 kB / 0.5949 GB, free: 1.203 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/1.056, allocations: 10.88 MB / 0.6055 GB, free: 6.895 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008959/1.057, allocations: 1.141 MB / 0.6066 GB, free: 5.754 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002665/1.059, allocations: 0.6873 MB / 0.6073 GB, free: 5.062 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007114/1.06, allocations: 405.3 kB / 0.6077 GB, free: 4.934 MB / 478.1 MB Notification: Performance of SimCode: time 1.583e-06/1.06, allocations: 0 / 0.6077 GB, free: 4.934 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0858/1.146, allocations: 47.31 MB / 0.6539 GB, free: 6.074 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/1.146, allocations: 253.5 kB / 0.6541 GB, free: 5.754 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.89/5.036, allocations: 0 / 0.6541 GB, free: 5.754 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat