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.001493/0.001494, 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.046/2.046, allocations: 205.3 MB / 214.1 MB, free: 14.12 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.001131/0.001131, allocations: 96.62 kB / 262.1 MB, free: 13.87 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.3062/0.3062, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.532e-05/2.532e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.403, allocations: 58.85 MB / 477.2 MB, free: 5.141 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1706/0.5737, allocations: 88.39 MB / 0.5523 GB, free: 10.8 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.574, allocations: 67.97 kB / 0.5524 GB, free: 10.73 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06856/0.6426, allocations: 15.47 MB / 0.5675 GB, free: 11.21 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6427, allocations: 0 / 0.5675 GB, free: 11.21 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0001237/0.6428, allocations: 24 kB / 0.5675 GB, free: 11.19 MB / 411.1 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.004574/0.6474, allocations: 1.056 MB / 0.5685 GB, free: 10.09 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.542e-05/0.6475, allocations: 8.031 kB / 0.5685 GB, free: 10.08 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006775/0.6482, allocations: 118.5 kB / 0.5687 GB, free: 9.965 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002769/0.651, allocations: 0.6444 MB / 0.5693 GB, free: 9.277 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.318e-05/0.6511, allocations: 20 kB / 0.5693 GB, free: 9.258 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000261/0.6514, allocations: 41.09 kB / 0.5693 GB, free: 9.219 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002163/0.6536, allocations: 386.6 kB / 0.5697 GB, free: 8.844 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003198/0.6568, allocations: 0.5882 MB / 0.5703 GB, free: 8.195 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-05/0.657, allocations: 4 kB / 0.5703 GB, free: 8.191 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002009/0.6572, allocations: 0 / 0.5703 GB, free: 8.191 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-05/0.6573, allocations: 16 kB / 0.5703 GB, free: 8.176 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008551/0.6659, allocations: 2.659 MB / 0.5729 GB, free: 5.43 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.6675, allocations: 0.5227 MB / 0.5734 GB, free: 4.871 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005546/0.6681, allocations: 223.5 kB / 0.5736 GB, free: 4.641 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.353e-05/0.6681, allocations: 5 kB / 0.5736 GB, free: 4.637 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.6682, allocations: 38.56 kB / 0.5737 GB, free: 4.59 MB / 411.1 MB Notification: Performance of pre-optimization done (n=52): time 3.606e-06/0.6682, allocations: 0 / 0.5737 GB, free: 4.59 MB / 411.1 MB Notification: Performance of matching and sorting (n=52): time 0.001451/0.6697, allocations: 460.5 kB / 0.5741 GB, free: 4.133 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.6698, allocations: 243.3 kB / 0.5743 GB, free: 3.84 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009895/0.6708, allocations: 0.5201 MB / 0.5749 GB, free: 3.312 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 8.303e-05/0.6709, allocations: 33.64 kB / 0.5749 GB, free: 3.273 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/0.6713, allocations: 442.6 kB / 0.5753 GB, free: 2.84 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.6716, allocations: 177.3 kB / 0.5755 GB, free: 2.664 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.6716, allocations: 0 / 0.5755 GB, free: 2.664 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.6718, allocations: 334.8 kB / 0.5758 GB, free: 2.328 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004418/0.6722, allocations: 149.1 kB / 0.5759 GB, free: 2.184 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005848/0.6728, allocations: 287.1 kB / 0.5762 GB, free: 1.852 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005068/0.6734, allocations: 187.6 kB / 0.5764 GB, free: 1.672 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.6734, allocations: 4 kB / 0.5764 GB, free: 1.668 MB / 411.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003187/0.6766, allocations: 0.7773 MB / 0.5772 GB, free: 0.875 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006116/0.6772, allocations: 1.147 MB / 0.5783 GB, free: 15.64 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.6773, allocations: 4 kB / 0.5783 GB, free: 15.64 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/0.6788, allocations: 259.2 kB / 0.5785 GB, free: 15.38 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.68, allocations: 127.8 kB / 0.5786 GB, free: 15.25 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005689/0.6857, allocations: 3.55 MB / 0.5821 GB, free: 11.5 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009716/0.6867, allocations: 79.59 kB / 0.5822 GB, free: 11.43 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/0.6868, allocations: 24.06 kB / 0.5822 GB, free: 11.4 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.6868, allocations: 4 kB / 0.5822 GB, free: 11.4 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001807/0.6886, allocations: 0.5082 MB / 0.5827 GB, free: 10.89 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.6887, allocations: 4 kB / 0.5827 GB, free: 10.88 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.6893, allocations: 113.9 kB / 0.5828 GB, free: 10.77 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.6908, allocations: 175.8 kB / 0.583 GB, free: 10.59 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00422/0.695, allocations: 3.008 MB / 0.5859 GB, free: 7.352 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006593/0.6957, allocations: 55.62 kB / 0.586 GB, free: 7.297 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.6958, allocations: 20 kB / 0.586 GB, free: 7.277 MB / 427.1 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.000271/0.6961, allocations: 128.8 kB / 0.5861 GB, free: 7.145 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001352/0.6974, allocations: 453.1 kB / 0.5866 GB, free: 6.695 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/0.6977, allocations: 86.97 kB / 0.5866 GB, free: 6.609 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002908/0.698, allocations: 90.91 kB / 0.5867 GB, free: 6.516 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.729e-05/0.6981, allocations: 8 kB / 0.5867 GB, free: 6.508 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.6981, allocations: 0 / 0.5867 GB, free: 6.508 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.6981, allocations: 3.984 kB / 0.5867 GB, free: 6.504 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.6996, allocations: 0.6536 MB / 0.5874 GB, free: 5.812 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.6996, allocations: 0 / 0.5874 GB, free: 5.812 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.7008, allocations: 127.8 kB / 0.5875 GB, free: 5.688 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-05/0.7008, allocations: 4 kB / 0.5875 GB, free: 5.684 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.7009, allocations: 4 kB / 0.5875 GB, free: 5.68 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.7009, allocations: 4 kB / 0.5875 GB, free: 5.676 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.7009, allocations: 0 / 0.5875 GB, free: 5.676 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/0.7029, allocations: 1.039 MB / 0.5885 GB, free: 4.598 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004098/0.7033, allocations: 203.9 kB / 0.5887 GB, free: 4.379 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.7035, allocations: 4 kB / 0.5887 GB, free: 4.375 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009305/0.7044, allocations: 47.95 kB / 0.5888 GB, free: 4.328 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.7045, allocations: 43.84 kB / 0.5888 GB, free: 4.285 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.161e-05/0.7046, allocations: 20.06 kB / 0.5888 GB, free: 4.266 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0007807/0.7054, allocations: 407.1 kB / 0.5892 GB, free: 3.871 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7054, allocations: 4 kB / 0.5892 GB, free: 3.867 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001422/0.7068, allocations: 246.9 kB / 0.5895 GB, free: 3.625 MB / 427.1 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.002427/0.7093, allocations: 1.802 MB / 0.5912 GB, free: 1.781 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.00512/0.7144, allocations: 1.32 MB / 0.5925 GB, free: 448 kB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/0.7145, allocations: 4 kB / 0.5925 GB, free: 444 kB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006176/0.7151, allocations: 212.7 kB / 0.5927 GB, free: 232 kB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.717, allocations: 195.7 kB / 0.5929 GB, free: 44 kB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/0.721, allocations: 1.252 MB / 0.5941 GB, free: 14.72 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007983/0.7218, allocations: 1.008 MB / 0.5951 GB, free: 13.69 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007465/0.7226, allocations: 331.3 kB / 0.5954 GB, free: 13.36 MB / 443.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7226, allocations: 4 kB / 0.5954 GB, free: 13.36 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.997/3.72, allocations: 19.63 MB / 0.6146 GB, free: 9.73 MB / 459.1 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