Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001185, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1755/0.1755, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 76.81 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09177, allocations: 62.44 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004658/0.09646, allocations: 4.355 MB / 484.5 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.09858, allocations: 1.589 MB / 486.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002993/0.09889, allocations: 35.81 kB / 486.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002854/0.09919, allocations: 158.2 kB / 486.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.0995, allocations: 154.3 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009452/0.1005, allocations: 0.6031 MB / 487 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007603/0.1012, allocations: 1.012 MB / 488 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004942/0.1017, allocations: 435.1 kB / 488.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002664/0.102, allocations: 362.3 kB / 488.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.1023, allocations: 389.7 kB / 489.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.1024, allocations: 91.94 kB / 489.3 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.416e-05/0.1025, allocations: 88 kB / 489.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.1027, allocations: 199.2 kB / 489.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.1029, allocations: 433.3 kB / 490 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000665/0.1036, allocations: 0.9811 MB / 490.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1036, allocations: 0 / 490.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1036, allocations: 0 / 490.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.1036, allocations: 4 kB / 491 MB, free: 10.28 MB / 366.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.001673/0.1053, allocations: 1.284 MB / 492.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1054, allocations: 11.97 kB / 492.2 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.1055, allocations: 106.7 kB / 492.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.1056, allocations: 119.5 kB / 492.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006747/0.1063, allocations: 0.6242 MB / 493.1 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.1063, allocations: 45.69 kB / 493.1 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.467e-05/0.1064, allocations: 64.38 kB / 493.2 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.1075, allocations: 0.7736 MB / 494 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1076, allocations: 7.938 kB / 494 MB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.1076, allocations: 28 kB / 494 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.1076, allocations: 16 kB / 494 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.1087, allocations: 0.5384 MB / 494.6 MB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.1115, allocations: 2.725 MB / 497.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.1127, allocations: 0.6705 MB / 498 MB, free: 2.965 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004787/0.1132, allocations: 279.3 kB / 498.2 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.1132, allocations: 4 kB / 498.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.1132, allocations: 54.5 kB / 498.3 MB, free: 2.613 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.893e-06/0.1132, allocations: 3.938 kB / 498.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001586/0.1148, allocations: 0.7925 MB / 499.1 MB, free: 1.812 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.115, allocations: 346.1 kB / 499.4 MB, free: 1.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006485/0.1156, allocations: 0.7007 MB / 0.4884 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.1157, allocations: 37.7 kB / 0.4884 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.1159, allocations: 436.5 kB / 0.4889 GB, free: 212 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.1161, allocations: 181.3 kB / 0.489 GB, free: 28 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1162, allocations: 110.1 kB / 0.4891 GB, free: 15.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.605e-05/0.1163, allocations: 329.9 kB / 0.4894 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/0.1168, allocations: 235 kB / 0.4897 GB, free: 15.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.1174, allocations: 391.5 kB / 0.49 GB, free: 14.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000962/0.1183, allocations: 0.5579 MB / 0.4906 GB, free: 14.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1183, allocations: 0 / 0.4906 GB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002352/0.1207, allocations: 1.037 MB / 0.4916 GB, free: 13.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1207, allocations: 8 kB / 0.4916 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1207, allocations: 4 kB / 0.4916 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.1218, allocations: 327.4 kB / 0.4919 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004902/0.1223, allocations: 123.9 kB / 0.492 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007683/0.13, allocations: 7.276 MB / 0.4991 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/0.1305, allocations: 79.39 kB / 0.4992 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.1306, allocations: 20 kB / 0.4992 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005436/0.1311, allocations: 349.2 kB / 0.4996 GB, free: 4.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004632/0.1316, allocations: 363.5 kB / 0.4999 GB, free: 4.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000746/0.1323, allocations: 492.9 kB / 0.5004 GB, free: 3.578 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.115e-06/0.1323, allocations: 3.984 kB / 0.5004 GB, free: 3.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001371/0.1337, allocations: 0.7464 MB / 0.5011 GB, free: 2.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.1337, allocations: 10.5 kB / 0.5011 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1338, allocations: 0 / 0.5011 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004378/0.1342, allocations: 145.8 kB / 0.5013 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.1349, allocations: 175.8 kB / 0.5014 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1542/0.2891, allocations: 3.413 MB / 0.5048 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.2897, allocations: 67.16 kB / 0.5048 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.2897, allocations: 21.25 kB / 0.5049 GB, free: 38.8 MB / 382.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001825/0.2899, allocations: 221.1 kB / 0.5051 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.2901, allocations: 91.23 kB / 0.5052 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.2903, allocations: 96.72 kB / 0.5053 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.2903, allocations: 5.406 kB / 0.5053 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2903, allocations: 1.531 kB / 0.5053 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.2903, allocations: 5.906 kB / 0.5053 GB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009683/0.2913, allocations: 0.7423 MB / 0.506 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.2913, allocations: 3.75 kB / 0.506 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005111/0.2918, allocations: 106.2 kB / 0.5061 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.2918, allocations: 3.578 kB / 0.5061 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.2919, allocations: 12.64 kB / 0.5061 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.2919, allocations: 6.781 kB / 0.5061 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2919, allocations: 5.531 kB / 0.5061 GB, free: 38.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.2935, allocations: 1.204 MB / 0.5073 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.2937, allocations: 215.8 kB / 0.5075 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/0.2937, allocations: 16.11 kB / 0.5075 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004547/0.2942, allocations: 46.14 kB / 0.5076 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.2943, allocations: 37.61 kB / 0.5076 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.2943, allocations: 14.64 kB / 0.5076 GB, free: 37.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005173/0.2948, allocations: 484.1 kB / 0.5081 GB, free: 37.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.2949, allocations: 1.188 kB / 0.5081 GB, free: 37.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008585/0.2957, allocations: 280.2 kB / 0.5083 GB, free: 37.83 MB / 382.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001714/0.2974, allocations: 1.765 MB / 0.5101 GB, free: 36.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003448/0.3009, allocations: 1.903 MB / 0.5119 GB, free: 35.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3009, allocations: 1.375 kB / 0.5119 GB, free: 35.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004903/0.3014, allocations: 283.6 kB / 0.5122 GB, free: 35.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.3026, allocations: 233.4 kB / 0.5124 GB, free: 35.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009999/0.3126, allocations: 7.539 MB / 0.5198 GB, free: 31.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.3131, allocations: 0.9804 MB / 0.5207 GB, free: 30.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004013/0.3135, allocations: 87.84 kB / 0.5208 GB, free: 30.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/0.3138, allocations: 329.3 kB / 0.5211 GB, free: 30.56 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3138, allocations: 0 / 0.5211 GB, free: 30.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.069/1.383, allocations: 20.01 MB / 0.5407 GB, free: 17.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.82/19.2, allocations: 8 kB / 0.5407 GB, free: 17.35 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches