Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.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.Blocks.LimPID,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID",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.00237/0.00237, allocations: 180.9 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.147/2.147, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001111/0.00111, allocations: 94.64 kB / 267.5 MB, free: 14.1 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.2846/0.2846, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.803e-05/3.823e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1212, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4908/0.612, allocations: 89.05 MB / 0.5598 GB, free: 14.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.6123, allocations: 65.31 kB / 0.5599 GB, free: 14.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06828/0.6806, allocations: 15.59 MB / 0.5751 GB, free: 1.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6807, allocations: 0 / 0.5751 GB, free: 1.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001211/0.6808, allocations: 27.94 kB / 0.5752 GB, free: 1.062 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002985/0.6838, allocations: 1.048 MB / 0.5762 GB, free: 28 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.6839, allocations: 16.03 kB / 0.5762 GB, free: 12 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003054/0.6842, allocations: 107.5 kB / 0.5763 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003833/0.6846, allocations: 118.5 kB / 0.5764 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.6863, allocations: 0.6389 MB / 0.577 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.409e-05/0.6864, allocations: 50.16 kB / 0.5771 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.6866, allocations: 64.8 kB / 0.5771 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.6883, allocations: 0.6712 MB / 0.5778 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.6883, allocations: 0 / 0.5778 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.814e-05/0.6884, allocations: 32.19 kB / 0.5778 GB, free: 14.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.6885, allocations: 19.98 kB / 0.5779 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.6897, allocations: 436.5 kB / 0.5783 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006012/0.6957, allocations: 2.785 MB / 0.581 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001647/0.6974, allocations: 0.557 MB / 0.5815 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.6981, allocations: 227.9 kB / 0.5818 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.757e-05/0.6982, allocations: 8 kB / 0.5818 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.6982, allocations: 49.55 kB / 0.5818 GB, free: 11.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=52): time 3.637e-06/0.6982, allocations: 0 / 0.5818 GB, free: 11.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.001522/0.6998, allocations: 494 kB / 0.5823 GB, free: 10.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/0.6999, allocations: 239.3 kB / 0.5825 GB, free: 10.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.7012, allocations: 0.6141 MB / 0.5831 GB, free: 10.17 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.7013, allocations: 36.52 kB / 0.5831 GB, free: 10.13 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.7017, allocations: 430.7 kB / 0.5836 GB, free: 9.863 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002298/0.702, allocations: 185 kB / 0.5837 GB, free: 9.707 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.702, allocations: 11.31 kB / 0.5837 GB, free: 9.703 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.7022, allocations: 335.8 kB / 0.5841 GB, free: 9.375 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004716/0.7027, allocations: 162.8 kB / 0.5842 GB, free: 9.285 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006407/0.7033, allocations: 295.5 kB / 0.5845 GB, free: 9.027 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005308/0.7039, allocations: 202.3 kB / 0.5847 GB, free: 8.906 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.7039, allocations: 0 / 0.5847 GB, free: 8.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003206/0.7071, allocations: 0.8309 MB / 0.5855 GB, free: 8.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005929/0.7077, allocations: 1.138 MB / 0.5866 GB, free: 7.051 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.7078, allocations: 7.938 kB / 0.5866 GB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/0.7094, allocations: 269.4 kB / 0.5869 GB, free: 6.824 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.7106, allocations: 127.7 kB / 0.587 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005788/0.7164, allocations: 3.576 MB / 0.5905 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.7175, allocations: 96.95 kB / 0.5906 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.597e-05/0.7176, allocations: 19.5 kB / 0.5906 GB, free: 3.078 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.7176, allocations: 4 kB / 0.5906 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001972/0.7196, allocations: 0.5715 MB / 0.5912 GB, free: 2.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.7196, allocations: 4 kB / 0.5912 GB, free: 2.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006427/0.7203, allocations: 124.8 kB / 0.5913 GB, free: 2.566 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.7218, allocations: 174.4 kB / 0.5915 GB, free: 2.398 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004612/0.7264, allocations: 3.13 MB / 0.5945 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006647/0.7271, allocations: 66.36 kB / 0.5946 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-05/0.7272, allocations: 22.62 kB / 0.5946 GB, free: 15.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002789/0.7275, allocations: 135.8 kB / 0.5947 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000376/0.7279, allocations: 94.88 kB / 0.5948 GB, free: 15.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003197/0.7282, allocations: 99.2 kB / 0.5949 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.7283, allocations: 4 kB / 0.5949 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/0.7283, allocations: 7.953 kB / 0.5949 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.7283, allocations: 3.984 kB / 0.5949 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.73, allocations: 0.735 MB / 0.5956 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.7301, allocations: 4 kB / 0.5956 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.7313, allocations: 125.1 kB / 0.5958 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-05/0.7314, allocations: 4 kB / 0.5958 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.538e-05/0.7314, allocations: 10.44 kB / 0.5958 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-05/0.7315, allocations: 8 kB / 0.5958 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.7315, allocations: 0 / 0.5958 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.7336, allocations: 1.086 MB / 0.5968 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000451/0.7341, allocations: 221.9 kB / 0.5971 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.7343, allocations: 10.75 kB / 0.5971 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009221/0.7352, allocations: 58.7 kB / 0.5971 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.7354, allocations: 41.67 kB / 0.5972 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.293e-05/0.7355, allocations: 14.88 kB / 0.5972 GB, free: 13.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009399/0.7364, allocations: 482.5 kB / 0.5976 GB, free: 12.69 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7364, allocations: 4 kB / 0.5976 GB, free: 12.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00143/0.7379, allocations: 270.8 kB / 0.5979 GB, free: 12.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.002593/0.7405, allocations: 1.85 MB / 0.5997 GB, free: 10.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00541/0.7459, allocations: 1.391 MB / 0.6011 GB, free: 9.633 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.746, allocations: 0 / 0.6011 GB, free: 9.633 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006459/0.7466, allocations: 223.2 kB / 0.6013 GB, free: 9.484 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.7486, allocations: 206 kB / 0.6015 GB, free: 9.332 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00422/0.7528, allocations: 1.312 MB / 0.6028 GB, free: 8.105 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007816/0.7537, allocations: 1 MB / 0.6037 GB, free: 7.078 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006901/0.7544, allocations: 329.3 kB / 0.604 GB, free: 7.004 MB / 410.7 MB Notification: Performance of SimCode: time 1.654e-06/0.7544, allocations: 0 / 0.604 GB, free: 7.004 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.961/3.715, allocations: 19.92 MB / 0.6235 GB, free: 3.32 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID_res.mat does not exist to compare? outputFormat=mat