Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002077/0.002076, allocations: 202.1 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 227.2 MB / 245 MB, free: 7.598 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000963/0.0009629, allocations: 95.16 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4614/0.4614, allocations: 45.22 MB / 394.6 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004953, allocations: 8.219 kB / 468.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.4338, allocations: 63.24 MB / 0.5193 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.5635, allocations: 86.52 MB / 0.6037 GB, free: 3.117 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.5639, allocations: 74.02 kB / 0.6038 GB, free: 3.051 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00542/0.5693, allocations: 1.79 MB / 0.6056 GB, free: 1.281 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.5694, allocations: 0 / 0.6056 GB, free: 1.281 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.5694, allocations: 0 / 0.6056 GB, free: 1.281 MB / 410.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.0004101/0.5698, allocations: 367.2 kB / 0.6059 GB, free: 0.875 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.5699, allocations: 8.031 kB / 0.6059 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.5699, allocations: 39.5 kB / 0.606 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.5699, allocations: 7.859 kB / 0.606 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.5701, allocations: 168.5 kB / 0.6061 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.5701, allocations: 3.938 kB / 0.6061 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.5701, allocations: 11.98 kB / 0.6061 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.5703, allocations: 57.61 kB / 0.6062 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.5703, allocations: 3.906 kB / 0.6062 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.5703, allocations: 4 kB / 0.6062 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.5703, allocations: 4 kB / 0.6062 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.473e-05/0.5704, allocations: 27.92 kB / 0.6062 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001864/0.5706, allocations: 165.7 kB / 0.6064 GB, free: 288 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.5708, allocations: 58.58 kB / 0.6065 GB, free: 220 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002279/0.5711, allocations: 117.1 kB / 0.6066 GB, free: 84 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.5711, allocations: 34.56 kB / 0.6066 GB, free: 40 kB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.5711, allocations: 0 / 0.6066 GB, free: 40 kB / 410.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.0383/0.6094, allocations: 2.815 MB / 0.6093 GB, free: 13.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.6095, allocations: 51.41 kB / 0.6094 GB, free: 13.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.6096, allocations: 96.98 kB / 0.6095 GB, free: 13.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.412e-05/0.6097, allocations: 33.7 kB / 0.6095 GB, free: 12.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.6097, allocations: 80.14 kB / 0.6096 GB, free: 12.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.6099, allocations: 67 kB / 0.6097 GB, free: 12.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.449e-05/0.6099, allocations: 4 kB / 0.6097 GB, free: 12.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.6101, allocations: 330.8 kB / 0.61 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/0.6104, allocations: 187.9 kB / 0.6102 GB, free: 12.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003633/0.6108, allocations: 187.8 kB / 0.6103 GB, free: 12.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005/0.6113, allocations: 221.5 kB / 0.6106 GB, free: 11.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.6113, allocations: 0 / 0.6106 GB, free: 11.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00106/0.6124, allocations: 493.3 kB / 0.611 GB, free: 11.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.6124, allocations: 4 kB / 0.611 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.6125, allocations: 0 / 0.611 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.6125, allocations: 4 kB / 0.611 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004063/0.6129, allocations: 79.88 kB / 0.6111 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.6129, allocations: 7.953 kB / 0.6111 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.6132, allocations: 23.98 kB / 0.6111 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.6132, allocations: 15.98 kB / 0.6112 GB, free: 11.3 MB / 426.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 () * Number of clocked 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.0001499/0.6134, allocations: 124.1 kB / 0.6113 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.6134, allocations: 7.906 kB / 0.6113 GB, free: 11.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.6147, allocations: 0.5682 MB / 0.6118 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.6147, allocations: 7.938 kB / 0.6118 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.6147, allocations: 0 / 0.6118 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.6147, allocations: 0 / 0.6118 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.617, allocations: 0.9469 MB / 0.6128 GB, free: 9.578 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.617, allocations: 4.188 kB / 0.6128 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.6173, allocations: 75.88 kB / 0.6128 GB, free: 9.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.6173, allocations: 4 kB / 0.6128 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.6173, allocations: 19.98 kB / 0.6129 GB, free: 9.477 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.6173, allocations: 4.188 kB / 0.6129 GB, free: 9.473 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.6174, allocations: 4 kB / 0.6129 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009322/0.6183, allocations: 0.5455 MB / 0.6134 GB, free: 8.852 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.6183, allocations: 93.02 kB / 0.6135 GB, free: 8.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.6184, allocations: 11.95 kB / 0.6135 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.6186, allocations: 27.97 kB / 0.6135 GB, free: 8.703 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.6186, allocations: 11.98 kB / 0.6135 GB, free: 8.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.6187, allocations: 19.98 kB / 0.6136 GB, free: 8.672 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.709e-05/0.6187, allocations: 87.28 kB / 0.6136 GB, free: 8.586 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6187, allocations: 0 / 0.6136 GB, free: 8.586 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001068/0.6198, allocations: 343.7 kB / 0.614 GB, free: 8.25 MB / 426.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 () * Number of clocked 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.002617/0.6224, allocations: 1.67 MB / 0.6156 GB, free: 6.516 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008067/0.6233, allocations: 371.7 kB / 0.616 GB, free: 6.152 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.6233, allocations: 0 / 0.616 GB, free: 6.152 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.6236, allocations: 165.3 kB / 0.6161 GB, free: 5.992 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.6238, allocations: 8 kB / 0.6161 GB, free: 5.984 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.6256, allocations: 0.5994 MB / 0.6167 GB, free: 5.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.6259, allocations: 0.6968 MB / 0.6174 GB, free: 4.594 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.6263, allocations: 92.88 kB / 0.6175 GB, free: 4.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.6265, allocations: 63.39 kB / 0.6175 GB, free: 4.438 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6265, allocations: 0 / 0.6175 GB, free: 4.438 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.6497, allocations: 8.602 MB / 0.6259 GB, free: 12.06 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/0.6499, allocations: 190.4 kB / 0.6261 GB, free: 11.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/2.375, allocations: 2.109 kB / 0.6261 GB, free: 11.82 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat