Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001505, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 86.84 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2994/0.2994, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.601e-05, allocations: 4.219 kB / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4335, allocations: 58.85 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.927/2.361, allocations: 0.574 GB / 1.04 GB, free: 140.9 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/2.361, allocations: 80.75 kB / 1.04 GB, free: 140.9 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 0.3459/2.707, allocations: 100.5 MB / 1.138 GB, free: 72.06 MB / 0.4952 GB Notification: Performance of FrontEnd: time 1.553e-06/2.707, allocations: 0 / 1.138 GB, free: 72.06 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 4.3e-05/2.707, allocations: 16 kB / 1.138 GB, free: 72.04 MB / 0.4952 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00213/2.709, allocations: 0.8139 MB / 1.139 GB, free: 71.18 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/2.709, allocations: 8.031 kB / 1.139 GB, free: 71.17 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005211/2.71, allocations: 75.31 kB / 1.139 GB, free: 71.09 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009148/2.711, allocations: 407.4 kB / 1.14 GB, free: 70.66 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.258e-05/2.711, allocations: 46.47 kB / 1.14 GB, free: 70.61 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.166e-05/2.711, allocations: 24 kB / 1.14 GB, free: 70.58 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007861/2.712, allocations: 301.4 kB / 1.14 GB, free: 70.29 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008935/2.713, allocations: 441.8 kB / 1.14 GB, free: 69.81 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/2.713, allocations: 4 kB / 1.14 GB, free: 69.81 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-05/2.713, allocations: 7.938 kB / 1.14 GB, free: 69.8 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.932e-05/2.713, allocations: 12.78 kB / 1.14 GB, free: 69.79 MB / 0.4952 GB Warning: The model contains alias variables with conflicting start and/or 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.004259/2.717, allocations: 2.379 MB / 1.143 GB, free: 67.25 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/2.718, allocations: 250.9 kB / 1.143 GB, free: 67 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/2.718, allocations: 108.8 kB / 1.143 GB, free: 66.89 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-05/2.718, allocations: 4 kB / 1.143 GB, free: 66.88 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004624/2.718, allocations: 207.2 kB / 1.143 GB, free: 66.66 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=32): time 3.156e-06/2.718, allocations: 0 / 1.143 GB, free: 66.66 MB / 0.4952 GB Notification: Performance of matching and sorting (n=44): time 0.0103/2.729, allocations: 1.927 MB / 1.145 GB, free: 64.61 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/2.729, allocations: 166.2 kB / 1.145 GB, free: 64.41 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004653/2.729, allocations: 313.2 kB / 1.146 GB, free: 64.09 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 6.748e-05/2.729, allocations: 25.7 kB / 1.146 GB, free: 64.06 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/2.73, allocations: 310.2 kB / 1.146 GB, free: 63.76 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/2.73, allocations: 149.8 kB / 1.146 GB, free: 63.61 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.226e-05/2.73, allocations: 0 / 1.146 GB, free: 63.61 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0001021/2.73, allocations: 330.8 kB / 1.146 GB, free: 63.28 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003617/2.73, allocations: 149.5 kB / 1.146 GB, free: 63.13 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/2.731, allocations: 325.3 kB / 1.147 GB, free: 62.73 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006209/2.731, allocations: 215.3 kB / 1.147 GB, free: 62.53 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/2.731, allocations: 4 kB / 1.147 GB, free: 62.53 MB / 0.4952 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001418/2.733, allocations: 0.547 MB / 1.148 GB, free: 61.97 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 4.578e-05/2.733, allocations: 37.69 kB / 1.148 GB, free: 61.93 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/2.733, allocations: 4 kB / 1.148 GB, free: 61.92 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005545/2.734, allocations: 105.5 kB / 1.148 GB, free: 61.82 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/2.735, allocations: 147.8 kB / 1.148 GB, free: 61.67 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006598/2.735, allocations: 0.6889 MB / 1.148 GB, free: 60.96 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000982/2.736, allocations: 55.89 kB / 1.149 GB, free: 60.9 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.23e-05/2.736, allocations: 48.05 kB / 1.149 GB, free: 60.86 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 (sweptVolume.regularFlow[1],$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,sweptVolume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002104/2.737, allocations: 132.8 kB / 1.149 GB, free: 60.72 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001108/2.738, allocations: 426 kB / 1.149 GB, free: 60.29 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.482e-05/2.738, allocations: 43.53 kB / 1.149 GB, free: 60.25 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/2.74, allocations: 0.5281 MB / 1.15 GB, free: 59.71 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/2.74, allocations: 4 kB / 1.15 GB, free: 59.71 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/2.74, allocations: 4 kB / 1.15 GB, free: 59.71 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/2.74, allocations: 3.984 kB / 1.15 GB, free: 59.7 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002485/2.742, allocations: 1.026 MB / 1.151 GB, free: 58.61 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/2.742, allocations: 8.125 kB / 1.151 GB, free: 58.61 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008375/2.743, allocations: 111.9 kB / 1.151 GB, free: 58.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008535/2.744, allocations: 104.8 kB / 1.151 GB, free: 58.39 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/2.744, allocations: 12 kB / 1.151 GB, free: 58.38 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002023/2.746, allocations: 1.627 MB / 1.153 GB, free: 56.63 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/2.746, allocations: 4.031 kB / 1.153 GB, free: 56.62 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/2.748, allocations: 0.7724 MB / 1.153 GB, free: 55.8 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/2.748, allocations: 156.5 kB / 1.153 GB, free: 55.62 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/2.748, allocations: 8 kB / 1.153 GB, free: 55.62 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008246/2.749, allocations: 51.94 kB / 1.153 GB, free: 55.57 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/2.749, allocations: 67.8 kB / 1.154 GB, free: 55.5 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.897e-05/2.749, allocations: 35.98 kB / 1.154 GB, free: 55.46 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.000332/2.75, allocations: 239 kB / 1.154 GB, free: 55.23 MB / 0.4952 GB Notification: Performance of sort global known variables: time 4.51e-07/2.75, allocations: 0 / 1.154 GB, free: 55.23 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.001448/2.751, allocations: 279.9 kB / 1.154 GB, free: 54.96 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (sweptVolume.medium.T,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00389/2.755, allocations: 2.413 MB / 1.156 GB, free: 52.5 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.001147/2.756, allocations: 461.1 kB / 1.157 GB, free: 52.03 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/2.756, allocations: 0.5 kB / 1.157 GB, free: 52.03 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.0005918/2.757, allocations: 317.3 kB / 1.157 GB, free: 51.71 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001434/2.758, allocations: 174.9 kB / 1.157 GB, free: 51.54 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/2.761, allocations: 0.9819 MB / 1.158 GB, free: 50.5 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/2.762, allocations: 0.8591 MB / 1.159 GB, free: 49.61 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006061/2.762, allocations: 199.4 kB / 1.159 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of SimCode: time 2.034e-06/2.762, allocations: 0 / 1.159 GB, free: 49.42 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.185/5.947, allocations: 16.64 MB / 1.176 GB, free: 32.79 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestSweptVolume.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestSweptVolume_res.mat does not exist to compare? outputFormat=mat