Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 111.7 kB / 18.45 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 186.1 kB / 19.38 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2198/0.2198, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3671, allocations: 60.82 MB / 0.5195 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004557/0.3717, allocations: 4.381 MB / 0.5238 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.3743, allocations: 1.553 MB / 0.5253 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003763/0.3747, allocations: 34.28 kB / 0.5254 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.3751, allocations: 157.7 kB / 0.5255 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003868/0.3755, allocations: 178.1 kB / 0.5257 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.3767, allocations: 0.5813 MB / 0.5263 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.3777, allocations: 1.033 MB / 0.5273 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005805/0.3783, allocations: 438.3 kB / 0.5277 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003621/0.3787, allocations: 369.3 kB / 0.528 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003565/0.379, allocations: 387.8 kB / 0.5284 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.3791, allocations: 84.97 kB / 0.5285 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.3793, allocations: 87.56 kB / 0.5286 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.3794, allocations: 208.5 kB / 0.5288 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003277/0.3798, allocations: 441.9 kB / 0.5292 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009455/0.3807, allocations: 1.036 MB / 0.5302 GB, free: 12.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3807, allocations: 0 / 0.5302 GB, free: 12.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3807, allocations: 0 / 0.5302 GB, free: 12.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.3808, allocations: 0 / 0.5302 GB, free: 12.15 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.001942/0.3827, allocations: 1.312 MB / 0.5315 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.3828, allocations: 7.594 kB / 0.5315 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.3829, allocations: 120.7 kB / 0.5316 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.384, allocations: 0.6731 MB / 0.5323 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.339e-05/0.384, allocations: 47.16 kB / 0.5323 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.3842, allocations: 66.86 kB / 0.5324 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.3855, allocations: 0.7379 MB / 0.5331 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3855, allocations: 1.031 kB / 0.5331 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-05/0.3856, allocations: 26.72 kB / 0.5331 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.3856, allocations: 19.38 kB / 0.5331 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.3869, allocations: 0.5462 MB / 0.5337 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003222/0.3901, allocations: 2.707 MB / 0.5363 GB, free: 7.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.3915, allocations: 0.6644 MB / 0.537 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000572/0.3921, allocations: 288.6 kB / 0.5372 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.541e-05/0.3921, allocations: 6.5 kB / 0.5373 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.034e-05/0.3922, allocations: 41.72 kB / 0.5373 GB, free: 6.781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.274e-06/0.3922, allocations: 1.031 kB / 0.5373 GB, free: 6.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.001928/0.3941, allocations: 0.8029 MB / 0.5381 GB, free: 6.387 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.3943, allocations: 249.6 kB / 0.5383 GB, free: 6.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008033/0.3951, allocations: 0.6964 MB / 0.539 GB, free: 5.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.625e-05/0.3951, allocations: 36.86 kB / 0.539 GB, free: 5.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.3955, allocations: 437 kB / 0.5394 GB, free: 5.277 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.3956, allocations: 191.6 kB / 0.5396 GB, free: 5.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.3958, allocations: 111.5 kB / 0.5397 GB, free: 5.035 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3959, allocations: 327.1 kB / 0.54 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005195/0.3964, allocations: 231.9 kB / 0.5403 GB, free: 4.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.397, allocations: 364.9 kB / 0.5406 GB, free: 4.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.3981, allocations: 0.5616 MB / 0.5412 GB, free: 3.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3981, allocations: 4.938 kB / 0.5412 GB, free: 3.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002691/0.4008, allocations: 1.043 MB / 0.5422 GB, free: 3.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.4009, allocations: 7.531 kB / 0.5422 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.4009, allocations: 5.969 kB / 0.5422 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.4021, allocations: 319.9 kB / 0.5425 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005784/0.4027, allocations: 127.5 kB / 0.5426 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008927/0.4116, allocations: 7.256 MB / 0.5497 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007203/0.4124, allocations: 79.59 kB / 0.5498 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.4124, allocations: 27.94 kB / 0.5498 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007548/0.4132, allocations: 349.2 kB / 0.5501 GB, free: 11.62 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004673/0.4137, allocations: 334.6 kB / 0.5505 GB, free: 11.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007895/0.4145, allocations: 493.9 kB / 0.5509 GB, free: 10.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.164e-06/0.4145, allocations: 15.92 kB / 0.551 GB, free: 10.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001491/0.416, allocations: 0.7433 MB / 0.5517 GB, free: 9.965 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.416, allocations: 8 kB / 0.5517 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.416, allocations: 0 / 0.5517 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000482/0.4165, allocations: 137.9 kB / 0.5518 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.4172, allocations: 175.8 kB / 0.552 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/0.4208, allocations: 3.427 MB / 0.5553 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.4213, allocations: 63.64 kB / 0.5554 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/0.4214, allocations: 20 kB / 0.5554 GB, free: 5.859 MB / 414.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.000226/0.4216, allocations: 216.1 kB / 0.5556 GB, free: 5.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/0.4218, allocations: 95.39 kB / 0.5557 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.422, allocations: 99.22 kB / 0.5558 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.422, allocations: 7.984 kB / 0.5558 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.422, allocations: 3.938 kB / 0.5558 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.4222, allocations: 216.3 kB / 0.556 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.245e-05/0.4223, allocations: 15.94 kB / 0.556 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.4228, allocations: 43.95 kB / 0.5561 GB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.4229, allocations: 31.95 kB / 0.5561 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001703/0.4246, allocations: 0.9319 MB / 0.557 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00186/0.4265, allocations: 1.31 MB / 0.5583 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005167/0.427, allocations: 263.8 kB / 0.5585 GB, free: 2.594 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005524/0.4276, allocations: 487 kB / 0.559 GB, free: 2.125 MB / 414.1 MB Notification: Performance of Backend: time 6.92e-07/0.4276, allocations: 0 / 0.559 GB, free: 2.125 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004054/0.4317, allocations: 1.763 MB / 0.5607 GB, free: 288 kB / 414.1 MB Notification: Performance of SimCode: time 0.002555/0.4342, allocations: 2.015 MB / 0.5627 GB, free: 14.22 MB / 430.1 MB Notification: Performance of Templates: time 0.02162/0.4559, allocations: 15.07 MB / 0.5774 GB, free: 15.23 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches