Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.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.Continuous_InitialState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialState",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.001548/0.001554, allocations: 181.6 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.073/2.073, 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.001098/0.001097, allocations: 97.73 kB / 267.5 MB, free: 14.11 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.3162/0.3162, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.538e-05/3.578e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1229, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5174/0.6404, allocations: 96 MB / 0.5666 GB, free: 7.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.6407, allocations: 72.22 kB / 0.5667 GB, free: 7.238 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1336/0.7743, allocations: 28.04 MB / 0.5941 GB, free: 15.51 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.7744, allocations: 0 / 0.5941 GB, free: 15.51 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.957e-05/0.7745, allocations: 20 kB / 0.5941 GB, free: 15.49 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00286/0.7774, allocations: 0.9541 MB / 0.595 GB, free: 14.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.7774, allocations: 12.03 kB / 0.595 GB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001648/0.7776, allocations: 86.77 kB / 0.5951 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002674/0.7779, allocations: 90.88 kB / 0.5952 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.7794, allocations: 0.5532 MB / 0.5958 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.212e-05/0.7795, allocations: 35.81 kB / 0.5958 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.7797, allocations: 64.27 kB / 0.5959 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.781, allocations: 0.5589 MB / 0.5964 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.7811, allocations: 0 / 0.5964 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.7812, allocations: 21.69 kB / 0.5964 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.7812, allocations: 8 kB / 0.5964 GB, free: 13.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.7823, allocations: 371.2 kB / 0.5968 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006124/0.7884, allocations: 2.704 MB / 0.5994 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.7899, allocations: 485.4 kB / 0.5999 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.7904, allocations: 194.2 kB / 0.6001 GB, free: 10.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.416e-05/0.7905, allocations: 4.438 kB / 0.6001 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.7905, allocations: 49.16 kB / 0.6001 GB, free: 10.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 3.386e-06/0.7906, allocations: 0 / 0.6001 GB, free: 10.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.002304/0.7929, allocations: 0.8074 MB / 0.6009 GB, free: 9.402 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.793, allocations: 140.5 kB / 0.601 GB, free: 9.234 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.7941, allocations: 0.5432 MB / 0.6016 GB, free: 8.801 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.011e-05/0.7942, allocations: 40.7 kB / 0.6016 GB, free: 8.762 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003061/0.7945, allocations: 365.9 kB / 0.602 GB, free: 8.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.7948, allocations: 177.4 kB / 0.6021 GB, free: 8.367 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.7948, allocations: 14.12 kB / 0.6021 GB, free: 8.363 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.795, allocations: 332.6 kB / 0.6025 GB, free: 8.039 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006038/0.7956, allocations: 203.9 kB / 0.6027 GB, free: 7.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/0.7964, allocations: 364.4 kB / 0.603 GB, free: 7.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007075/0.7971, allocations: 258.9 kB / 0.6033 GB, free: 7.395 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.7971, allocations: 0 / 0.6033 GB, free: 7.395 MB / 410.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001698/0.7988, allocations: 0.6315 MB / 0.6039 GB, free: 6.918 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008365/0.7997, allocations: 1.74 MB / 0.6056 GB, free: 5.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.7997, allocations: 4 kB / 0.6056 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.299e-05/0.7998, allocations: 8 kB / 0.6056 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.8012, allocations: 163.5 kB / 0.6057 GB, free: 4.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.8012, allocations: 11.98 kB / 0.6057 GB, free: 4.898 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.8023, allocations: 95.08 kB / 0.6058 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.19e-05/0.8024, allocations: 26.38 kB / 0.6059 GB, free: 4.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.8025, allocations: 4 kB / 0.6059 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00158/0.804, allocations: 0.5803 MB / 0.6064 GB, free: 4.375 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.8041, allocations: 4 kB / 0.6064 GB, free: 4.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.8041, allocations: 11.98 kB / 0.6064 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.8054, allocations: 156.1 kB / 0.6066 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.865e-05/0.8054, allocations: 8 kB / 0.6066 GB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006524/0.806, allocations: 74.03 kB / 0.6067 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.92e-05/0.8061, allocations: 27.86 kB / 0.6067 GB, free: 4.117 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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.0002415/0.8064, allocations: 145.3 kB / 0.6068 GB, free: 3.984 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003047/0.8067, allocations: 82.52 kB / 0.6069 GB, free: 3.906 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002769/0.807, allocations: 80.33 kB / 0.607 GB, free: 3.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.807, allocations: 4 kB / 0.607 GB, free: 3.863 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.807, allocations: 4 kB / 0.607 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.8071, allocations: 7.984 kB / 0.607 GB, free: 3.852 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.8088, allocations: 0.8185 MB / 0.6078 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.8089, allocations: 0 / 0.6078 GB, free: 3.156 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.8103, allocations: 119.1 kB / 0.6079 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.8103, allocations: 4 kB / 0.6079 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.207e-05/0.8104, allocations: 11.92 kB / 0.6079 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.8104, allocations: 4 kB / 0.6079 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8104, allocations: 4 kB / 0.6079 GB, free: 3.027 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.8125, allocations: 0.9926 MB / 0.6089 GB, free: 2.223 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004109/0.8129, allocations: 206 kB / 0.6091 GB, free: 2.027 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/0.8131, allocations: 11.91 kB / 0.6091 GB, free: 2.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.8142, allocations: 63.62 kB / 0.6092 GB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.8144, allocations: 47.11 kB / 0.6092 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.184e-05/0.8144, allocations: 11.95 kB / 0.6092 GB, free: 1.914 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008757/0.8153, allocations: 441.1 kB / 0.6097 GB, free: 1.586 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8153, allocations: 0 / 0.6097 GB, free: 1.586 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001157/0.8165, allocations: 206.7 kB / 0.6099 GB, free: 1.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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.8191, allocations: 1.682 MB / 0.6115 GB, free: 15.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.8214, allocations: 0.7764 MB / 0.6123 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.8215, allocations: 0 / 0.6123 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006121/0.8221, allocations: 221.7 kB / 0.6125 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.8236, allocations: 175.1 kB / 0.6126 GB, free: 15.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.8278, allocations: 1.412 MB / 0.614 GB, free: 13.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007759/0.8287, allocations: 0.9646 MB / 0.615 GB, free: 12.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006653/0.8293, allocations: 264.8 kB / 0.6152 GB, free: 12.69 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8294, allocations: 0 / 0.6152 GB, free: 12.69 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.757/3.587, allocations: 11.6 MB / 0.6265 GB, free: 1.266 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialState_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat does not exist to compare? outputFormat=mat