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.001438/0.001438, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001651/0.001651, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 46.11 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.327, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005752/0.3328, allocations: 4.365 MB / 0.5349 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003117/0.3359, allocations: 1.578 MB / 0.5364 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000468/0.3364, allocations: 31.81 kB / 0.5365 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004033/0.3368, allocations: 158.9 kB / 0.5366 GB, free: 8.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003791/0.3372, allocations: 160.7 kB / 0.5368 GB, free: 8.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.3384, allocations: 0.5897 MB / 0.5373 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.3395, allocations: 1.032 MB / 0.5383 GB, free: 7.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006149/0.3401, allocations: 441.5 kB / 0.5388 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003832/0.3405, allocations: 361.7 kB / 0.5391 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.3409, allocations: 389.1 kB / 0.5395 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.3411, allocations: 86.22 kB / 0.5396 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.3412, allocations: 90.12 kB / 0.5396 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.3414, allocations: 192.4 kB / 0.5398 GB, free: 6.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004/0.3418, allocations: 440.3 kB / 0.5402 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.3429, allocations: 1.028 MB / 0.5413 GB, free: 4.996 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3429, allocations: 3.938 kB / 0.5413 GB, free: 4.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3429, allocations: 0 / 0.5413 GB, free: 4.992 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.343, allocations: 5.094 kB / 0.5413 GB, free: 4.988 MB / 398.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.002062/0.345, allocations: 1.322 MB / 0.5426 GB, free: 3.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.3451, allocations: 9.531 kB / 0.5426 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.3452, allocations: 111.7 kB / 0.5427 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.3454, allocations: 121.3 kB / 0.5428 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009777/0.3464, allocations: 0.662 MB / 0.5434 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.159e-05/0.3465, allocations: 47.75 kB / 0.5435 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3466, allocations: 66.31 kB / 0.5435 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3479, allocations: 0.7679 MB / 0.5443 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.3479, allocations: 5 kB / 0.5443 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.802e-05/0.348, allocations: 30.44 kB / 0.5443 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.348, allocations: 16.06 kB / 0.5443 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.3492, allocations: 0.5458 MB / 0.5449 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.3526, allocations: 2.724 MB / 0.5475 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.354, allocations: 0.6633 MB / 0.5482 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000575/0.3546, allocations: 279.3 kB / 0.5484 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.848e-05/0.3547, allocations: 15.98 kB / 0.5485 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.3547, allocations: 42.56 kB / 0.5485 GB, free: 15.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.043e-06/0.3547, allocations: 0 / 0.5485 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001844/0.3566, allocations: 0.7933 MB / 0.5493 GB, free: 14.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.3568, allocations: 346.1 kB / 0.5496 GB, free: 13.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007953/0.3576, allocations: 0.6968 MB / 0.5503 GB, free: 13.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.425e-05/0.3577, allocations: 37.7 kB / 0.5503 GB, free: 13.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.358, allocations: 437 kB / 0.5507 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.3582, allocations: 198.2 kB / 0.5509 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.3584, allocations: 106.2 kB / 0.551 GB, free: 12.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3585, allocations: 333.9 kB / 0.5513 GB, free: 12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.359, allocations: 231 kB / 0.5516 GB, free: 11.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/0.3597, allocations: 391.4 kB / 0.5519 GB, free: 11.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.3608, allocations: 0.5537 MB / 0.5525 GB, free: 10.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3608, allocations: 4 kB / 0.5525 GB, free: 10.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002617/0.3634, allocations: 1.044 MB / 0.5535 GB, free: 9.672 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3635, allocations: 11.97 kB / 0.5535 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3635, allocations: 4 kB / 0.5535 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.3646, allocations: 323.1 kB / 0.5538 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.3652, allocations: 123.9 kB / 0.5539 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009323/0.3745, allocations: 7.277 MB / 0.5611 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006978/0.3752, allocations: 83.58 kB / 0.5611 GB, free: 1.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.234e-05/0.3753, allocations: 20 kB / 0.5612 GB, free: 1.266 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006438/0.3759, allocations: 349.2 kB / 0.5615 GB, free: 0.918 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005196/0.3765, allocations: 351.5 kB / 0.5618 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008641/0.3773, allocations: 0.4986 MB / 0.5623 GB, free: 15.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.138e-06/0.3773, allocations: 4 kB / 0.5623 GB, free: 15.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001545/0.3789, allocations: 0.7433 MB / 0.563 GB, free: 15.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3789, allocations: 8 kB / 0.563 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.3789, allocations: 4.156 kB / 0.563 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004969/0.3794, allocations: 141.8 kB / 0.5632 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007108/0.3802, allocations: 175.8 kB / 0.5633 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003719/0.3839, allocations: 3.435 MB / 0.5667 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005494/0.3845, allocations: 67.64 kB / 0.5668 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.3845, allocations: 20 kB / 0.5668 GB, free: 11.1 MB / 430.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.0002487/0.3848, allocations: 220.1 kB / 0.567 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.3849, allocations: 103.3 kB / 0.5671 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.3852, allocations: 103.1 kB / 0.5672 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3852, allocations: 8 kB / 0.5672 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3852, allocations: 0 / 0.5672 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3852, allocations: 0 / 0.5672 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.3863, allocations: 0.7351 MB / 0.5679 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3863, allocations: 0 / 0.5679 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.3868, allocations: 115.9 kB / 0.568 GB, free: 9.762 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.3869, allocations: 7.938 kB / 0.568 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.3869, allocations: 15.94 kB / 0.5681 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.3869, allocations: 3.938 kB / 0.5681 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3869, allocations: 4 kB / 0.5681 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.3889, allocations: 1.205 MB / 0.5692 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.3891, allocations: 220.2 kB / 0.5694 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.926e-05/0.3892, allocations: 16 kB / 0.5695 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.3897, allocations: 43.95 kB / 0.5695 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.3898, allocations: 31.89 kB / 0.5695 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.3898, allocations: 20 kB / 0.5696 GB, free: 8.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005767/0.3904, allocations: 490.9 kB / 0.57 GB, free: 7.699 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3904, allocations: 0 / 0.57 GB, free: 7.699 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009283/0.3914, allocations: 279.4 kB / 0.5703 GB, free: 7.426 MB / 430.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.002278/0.3937, allocations: 1.766 MB / 0.572 GB, free: 5.625 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004178/0.3978, allocations: 1.881 MB / 0.5739 GB, free: 3.672 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3979, allocations: 0 / 0.5739 GB, free: 3.672 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005935/0.3985, allocations: 283.3 kB / 0.5741 GB, free: 3.398 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.3998, allocations: 230.9 kB / 0.5743 GB, free: 3.184 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.4117, allocations: 7.223 MB / 0.5814 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006138/0.4123, allocations: 0.9848 MB / 0.5824 GB, free: 10.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003764/0.4127, allocations: 97.09 kB / 0.5824 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004362/0.4132, allocations: 327.3 kB / 0.5828 GB, free: 10.28 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4132, allocations: 0 / 0.5828 GB, free: 10.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05672/0.4699, allocations: 20.3 MB / 0.6026 GB, free: 6.105 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.72, allocations: 11.86 kB / 0.6026 GB, free: 6.094 MB / 462.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