Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",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.001529/0.001535, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001624/0.001624, allocations: 82.67 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3831/0.3831, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.999e-05/4.008e-05, allocations: 7.984 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.6017, allocations: 84.28 MB / 0.5552 GB, free: 3.246 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.602, allocations: 65.91 kB / 0.5552 GB, free: 3.211 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00765/0.6097, allocations: 1.762 MB / 0.557 GB, free: 1.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6097, allocations: 0 / 0.557 GB, free: 1.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.6098, allocations: 0 / 0.557 GB, free: 1.691 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003343/0.6101, allocations: 366.3 kB / 0.5573 GB, free: 1.293 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.196e-05/0.6102, allocations: 12.03 kB / 0.5573 GB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.106e-05/0.6102, allocations: 42.11 kB / 0.5574 GB, free: 1.238 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.6103, allocations: 12.48 kB / 0.5574 GB, free: 1.227 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.438e-05/0.6104, allocations: 159.1 kB / 0.5575 GB, free: 1.031 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.6104, allocations: 11.28 kB / 0.5575 GB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.6104, allocations: 3.812 kB / 0.5575 GB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001379/0.6106, allocations: 49.38 kB / 0.5576 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.6106, allocations: 7.812 kB / 0.5576 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.6106, allocations: 3.984 kB / 0.5576 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.6107, allocations: 0 / 0.5576 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.315e-05/0.6108, allocations: 27.89 kB / 0.5576 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.6109, allocations: 173.4 kB / 0.5578 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.6112, allocations: 62.16 kB / 0.5579 GB, free: 0.668 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.6113, allocations: 24.48 kB / 0.5579 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/0.6116, allocations: 109.1 kB / 0.558 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.6117, allocations: 34.56 kB / 0.558 GB, free: 492 kB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.374e-06/0.6117, allocations: 0 / 0.558 GB, free: 492 kB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.06952/0.6812, allocations: 2.059 MB / 0.56 GB, free: 14.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.6813, allocations: 59.41 kB / 0.5601 GB, free: 14.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.6814, allocations: 91.69 kB / 0.5602 GB, free: 14.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.6815, allocations: 33.02 kB / 0.5602 GB, free: 14.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.6816, allocations: 150.6 kB / 0.5603 GB, free: 14.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.6817, allocations: 68.7 kB / 0.5604 GB, free: 14.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.845e-05/0.6817, allocations: 3.938 kB / 0.5604 GB, free: 14.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.6819, allocations: 318 kB / 0.5607 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/0.6823, allocations: 144.4 kB / 0.5609 GB, free: 13.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/0.6827, allocations: 143.2 kB / 0.561 GB, free: 13.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005704/0.6833, allocations: 164.5 kB / 0.5611 GB, free: 13.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.6833, allocations: 0 / 0.5611 GB, free: 13.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001186/0.6845, allocations: 394 kB / 0.5615 GB, free: 13.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.6846, allocations: 4 kB / 0.5615 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.6846, allocations: 0 / 0.5615 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.6846, allocations: 4 kB / 0.5615 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007265/0.6853, allocations: 83.25 kB / 0.5616 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.6854, allocations: 7.953 kB / 0.5616 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003965/0.6858, allocations: 23.97 kB / 0.5616 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/0.6859, allocations: 19.36 kB / 0.5617 GB, free: 13.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001547/0.686, allocations: 112.7 kB / 0.5618 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.692e-05/0.6861, allocations: 7.906 kB / 0.5618 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/0.6877, allocations: 479.3 kB / 0.5622 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.6878, allocations: 4 kB / 0.5622 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.6878, allocations: 3.984 kB / 0.5622 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.6878, allocations: 0 / 0.5622 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.691, allocations: 0.838 MB / 0.5631 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.691, allocations: 4.188 kB / 0.5631 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.6916, allocations: 79.88 kB / 0.5631 GB, free: 11.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.29e-05/0.6916, allocations: 4 kB / 0.5631 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/0.6917, allocations: 16.19 kB / 0.5632 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.6917, allocations: 3.984 kB / 0.5632 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.6917, allocations: 7.938 kB / 0.5632 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.6928, allocations: 464.2 kB / 0.5636 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.189e-05/0.6929, allocations: 88.97 kB / 0.5637 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.6929, allocations: 7.25 kB / 0.5637 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003791/0.6933, allocations: 31.59 kB / 0.5637 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.6934, allocations: 11.98 kB / 0.5637 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.6934, allocations: 23.36 kB / 0.5638 GB, free: 11.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.758e-05/0.6935, allocations: 79.28 kB / 0.5638 GB, free: 11.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.525e-06/0.6935, allocations: 4 kB / 0.5638 GB, free: 11.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001337/0.6949, allocations: 346.6 kB / 0.5642 GB, free: 10.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003762/0.6987, allocations: 1.576 MB / 0.5657 GB, free: 9.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008621/0.6996, allocations: 264.5 kB / 0.566 GB, free: 9.016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6996, allocations: 0 / 0.566 GB, free: 9.016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.7, allocations: 117.9 kB / 0.5661 GB, free: 8.926 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.7002, allocations: 12 kB / 0.5661 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.7031, allocations: 0.5041 MB / 0.5666 GB, free: 8.398 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.7035, allocations: 0.7007 MB / 0.5673 GB, free: 7.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.7038, allocations: 59.09 kB / 0.5673 GB, free: 7.617 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7039, allocations: 0 / 0.5673 GB, free: 7.617 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.561/3.265, allocations: 7.55 MB / 0.5747 GB, free: 56 kB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat