Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.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: "" <> buildModelFMU(ModelicaTest.Blocks.StrictLimiters,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_StrictLimiters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.StrictLimiters,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_StrictLimiters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 108.8 kB / 17.77 MB, free: 5.266 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.001169/0.001169, allocations: 184.1 kB / 18.71 MB, free: 4.34 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2226/0.2226, allocations: 44.2 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3284, allocations: 60.82 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.StrictLimiters): time 0.004538/0.333, allocations: 3.521 MB / 0.5219 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003156/0.3362, allocations: 1.385 MB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005869/0.3368, allocations: 23.44 kB / 0.5232 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.3372, allocations: 117.5 kB / 0.5233 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006463/0.3379, allocations: 173.9 kB / 0.5235 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.3394, allocations: 0.5929 MB / 0.5241 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001587/0.341, allocations: 0.9369 MB / 0.525 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006236/0.3417, allocations: 300.7 kB / 0.5253 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007708/0.3424, allocations: 373.9 kB / 0.5257 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005897/0.343, allocations: 361.7 kB / 0.526 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.3432, allocations: 74.22 kB / 0.5261 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.3433, allocations: 72.88 kB / 0.5261 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.3436, allocations: 168 kB / 0.5263 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004219/0.344, allocations: 365.5 kB / 0.5266 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.3452, allocations: 0.8412 MB / 0.5275 GB, free: 13.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3452, allocations: 4 kB / 0.5275 GB, free: 13.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3452, allocations: 1.031 kB / 0.5275 GB, free: 13.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.3452, allocations: 0 / 0.5275 GB, free: 13.27 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002746/0.348, allocations: 1.214 MB / 0.5287 GB, free: 12.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.456e-05/0.3481, allocations: 9.219 kB / 0.5287 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.3482, allocations: 95.89 kB / 0.5288 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002035/0.3484, allocations: 97.67 kB / 0.5289 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.3494, allocations: 0.5855 MB / 0.5294 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.183e-05/0.3495, allocations: 42.56 kB / 0.5295 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.964e-05/0.3496, allocations: 52.98 kB / 0.5295 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.3512, allocations: 0.7144 MB / 0.5302 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.3512, allocations: 1.344 kB / 0.5302 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-05/0.3513, allocations: 25.38 kB / 0.5302 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.3513, allocations: 13.22 kB / 0.5303 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.3529, allocations: 0.5577 MB / 0.5308 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003647/0.3566, allocations: 2.281 MB / 0.533 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.3584, allocations: 0.7167 MB / 0.5337 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008664/0.3593, allocations: 333 kB / 0.534 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.765e-05/0.3594, allocations: 6.219 kB / 0.534 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.3594, allocations: 39.16 kB / 0.5341 GB, free: 8.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/0.3594, allocations: 0 / 0.5341 GB, free: 8.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.005193/0.3646, allocations: 1.937 MB / 0.536 GB, free: 7.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3648, allocations: 194 kB / 0.5362 GB, free: 7.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007415/0.3655, allocations: 0.5673 MB / 0.5367 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.638e-05/0.3656, allocations: 40.3 kB / 0.5368 GB, free: 6.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/0.3659, allocations: 358 kB / 0.5371 GB, free: 6.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.366, allocations: 182.7 kB / 0.5373 GB, free: 6.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.3662, allocations: 108.6 kB / 0.5374 GB, free: 6.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.3664, allocations: 378.9 kB / 0.5377 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008857/0.3673, allocations: 304.9 kB / 0.538 GB, free: 5.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009941/0.3683, allocations: 416.1 kB / 0.5384 GB, free: 5.363 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001803/0.3702, allocations: 0.6487 MB / 0.5391 GB, free: 5.008 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3702, allocations: 1.312 kB / 0.5391 GB, free: 5.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002194/0.3724, allocations: 0.8014 MB / 0.5398 GB, free: 4.617 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.3724, allocations: 7 kB / 0.5398 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3724, allocations: 5.969 kB / 0.5399 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.3725, allocations: 8.875 kB / 0.5399 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009309/0.3734, allocations: 200.9 kB / 0.5401 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3734, allocations: 4.406 kB / 0.5401 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/0.3741, allocations: 77.86 kB / 0.5401 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.3741, allocations: 22.77 kB / 0.5402 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008201/0.375, allocations: 359.3 kB / 0.5405 GB, free: 4.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006935/0.3757, allocations: 352 kB / 0.5408 GB, free: 4.043 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001251/0.3769, allocations: 0.5394 MB / 0.5414 GB, free: 3.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.908e-06/0.3769, allocations: 1.062 kB / 0.5414 GB, free: 3.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.0016/0.3785, allocations: 0.6676 MB / 0.542 GB, free: 3.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3786, allocations: 6.969 kB / 0.542 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.3786, allocations: 4 kB / 0.542 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.156e-06/0.3786, allocations: 4 kB / 0.542 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007245/0.3793, allocations: 168 kB / 0.5422 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.3794, allocations: 11.98 kB / 0.5422 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005655/0.3799, allocations: 55.89 kB / 0.5422 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/0.38, allocations: 23.98 kB / 0.5423 GB, free: 3.094 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 4 (PID2.I.local_reset,PID1.I.local_reset,limIntegrator2.local_reset,limIntegrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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 prepare postOptimizeDAE: time 0.0002399/0.3802, allocations: 216.1 kB / 0.5425 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.3804, allocations: 75.53 kB / 0.5425 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002274/0.3807, allocations: 87.22 kB / 0.5426 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.3807, allocations: 4 kB / 0.5426 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.3807, allocations: 0 / 0.5426 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3807, allocations: 3.984 kB / 0.5426 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.3838, allocations: 1.445 MB / 0.5441 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3838, allocations: 0 / 0.5441 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007815/0.3846, allocations: 163.8 kB / 0.5442 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.3846, allocations: 0 / 0.5442 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.3847, allocations: 16 kB / 0.5442 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.3847, allocations: 0 / 0.5442 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3847, allocations: 7.938 kB / 0.5442 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/0.3876, allocations: 1.253 MB / 0.5455 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002971/0.3879, allocations: 192.6 kB / 0.5456 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.3881, allocations: 8 kB / 0.5456 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006192/0.3887, allocations: 79.91 kB / 0.5457 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.3888, allocations: 51.81 kB / 0.5458 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/0.3889, allocations: 15.98 kB / 0.5458 GB, free: 15.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005272/0.3894, allocations: 395.1 kB / 0.5462 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3894, allocations: 4 kB / 0.5462 GB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008358/0.3902, allocations: 184 kB / 0.5463 GB, free: 14.81 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (der1.u,der2.u,limIntegrator1.y,limIntegrator2.y,PID1.I.y,PID1.D.x,PID2.I.y,PID2.D.x) * 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 (50): * Single equations (assignments): 50 * 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.003204/0.3935, allocations: 1.809 MB / 0.5481 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002655/0.3961, allocations: 0.9813 MB / 0.5491 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.3961, allocations: 0 / 0.5491 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009269/0.3971, allocations: 356 kB / 0.5494 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.3983, allocations: 210.4 kB / 0.5496 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.4101, allocations: 6.282 MB / 0.5557 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/0.4107, allocations: 0.9179 MB / 0.5566 GB, free: 4.055 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005496/0.4113, allocations: 97.06 kB / 0.5567 GB, free: 3.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.4118, allocations: 279.3 kB / 0.557 GB, free: 3.684 MB / 414.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4118, allocations: 0 / 0.557 GB, free: 3.684 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04272/0.4545, allocations: 15.41 MB / 0.572 GB, free: 4.434 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.958/9.413, allocations: 23.28 kB / 0.5721 GB, free: 4.414 MB / 430.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Blocks_StrictLimiters.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/StrictLimiters/StrictLimiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.StrictLimiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches