Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002251/0.002251, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2303/0.2303, allocations: 44.93 MB / 359.6 MB, free: 6.137 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 63.91 kB / 0.4942 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3807, allocations: 65.47 MB / 0.5582 GB, free: 7.438 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001871/0.3825, allocations: 491.6 kB / 0.5586 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003818/0.3864, allocations: 2.066 MB / 0.5607 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.95e-05/0.3864, allocations: 0 / 0.5607 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.177e-05/0.3864, allocations: 0 / 0.5607 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.122e-05/0.3864, allocations: 0 / 0.5607 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.3878, allocations: 402.7 kB / 0.561 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.191e-05/0.3878, allocations: 0 / 0.561 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.515e-05/0.3879, allocations: 11.98 kB / 0.561 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.267e-05/0.3879, allocations: 0 / 0.561 GB, free: 4.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02075/0.4087, allocations: 3.39 MB / 0.5644 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.4087, allocations: 0 / 0.5644 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.4088, allocations: 7.984 kB / 0.5644 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.4088, allocations: 0 / 0.5644 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.4088, allocations: 4 kB / 0.5644 GB, free: 1.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.409, allocations: 11.92 kB / 0.5644 GB, free: 1.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.409, allocations: 8 kB / 0.5644 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.409, allocations: 0 / 0.5644 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.409, allocations: 0 / 0.5644 GB, free: 1.68 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000355/0.4094, allocations: 238.4 kB / 0.5646 GB, free: 1.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.4094, allocations: 12.03 kB / 0.5646 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.4096, allocations: 80.22 kB / 0.5647 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.4098, allocations: 193.8 kB / 0.5649 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.813e-05/0.4098, allocations: 154.9 kB / 0.565 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/0.4099, allocations: 158.6 kB / 0.5652 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.063e-05/0.41, allocations: 105 kB / 0.5653 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.497e-05/0.41, allocations: 79.28 kB / 0.5654 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.797e-05/0.4101, allocations: 150.6 kB / 0.5655 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.025e-05/0.4102, allocations: 150.6 kB / 0.5657 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.865e-05/0.4103, allocations: 150.6 kB / 0.5658 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003176/0.4106, allocations: 397.6 kB / 0.5662 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.4107, allocations: 169.1 kB / 0.5663 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.497e-05/0.4107, allocations: 84.14 kB / 0.5664 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.4108, allocations: 79.27 kB / 0.5665 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/0.4108, allocations: 109.8 kB / 0.5666 GB, free: 15.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.202e-06/0.4108, allocations: 0 / 0.5666 GB, free: 15.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.534e-05/0.4109, allocations: 41.64 kB / 0.5666 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.4111, allocations: 178.1 kB / 0.5668 GB, free: 15.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.4112, allocations: 89.86 kB / 0.5669 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.4112, allocations: 29.7 kB / 0.5669 GB, free: 14.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.182e-05/0.4113, allocations: 80.14 kB / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.325e-06/0.4113, allocations: 0 / 0.567 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.4113, allocations: 13.72 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.4114, allocations: 318.8 kB / 0.5673 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.871e-06/0.4115, allocations: 0 / 0.5673 GB, free: 14.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.688e-05/0.4115, allocations: 61.12 kB / 0.5674 GB, free: 14.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.563e-05/0.4115, allocations: 83.44 kB / 0.5675 GB, free: 14.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-05/0.4116, allocations: 75.28 kB / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.66e-05/0.4116, allocations: 37.58 kB / 0.5676 GB, free: 14.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.731e-05/0.4117, allocations: 82.72 kB / 0.5676 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.573e-05/0.4117, allocations: 79.22 kB / 0.5677 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.522e-05/0.4118, allocations: 158.6 kB / 0.5679 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.7e-05/0.4118, allocations: 83.2 kB / 0.5679 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.267e-05/0.4119, allocations: 154.6 kB / 0.5681 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.895e-05/0.412, allocations: 83.22 kB / 0.5682 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.4121, allocations: 75.28 kB / 0.5682 GB, free: 13.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001564/0.4122, allocations: 264.4 kB / 0.5685 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.4123, allocations: 104.9 kB / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.477e-05/0.4124, allocations: 115.7 kB / 0.5687 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.832e-05/0.4125, allocations: 184.3 kB / 0.5689 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.114e-05/0.4126, allocations: 180.2 kB / 0.5691 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.119e-05/0.4126, allocations: 176.3 kB / 0.5692 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.4129, allocations: 352.9 kB / 0.5696 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.445e-05/0.413, allocations: 104.9 kB / 0.5697 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.871e-05/0.4131, allocations: 109 kB / 0.5698 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.4132, allocations: 192.1 kB / 0.5699 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-05/0.4133, allocations: 176.3 kB / 0.5701 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.275e-05/0.4134, allocations: 184.3 kB / 0.5703 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001032/0.4135, allocations: 188.2 kB / 0.5705 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.4137, allocations: 304.1 kB / 0.5708 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.082e-05/0.4138, allocations: 109 kB / 0.5709 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.4139, allocations: 188.2 kB / 0.571 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.414, allocations: 108.9 kB / 0.5711 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.878e-05/0.4141, allocations: 180.3 kB / 0.5713 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.666e-05/0.4141, allocations: 104.9 kB / 0.5714 GB, free: 10.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.132e-05/0.4142, allocations: 79.28 kB / 0.5715 GB, free: 9.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4142, allocations: 0 / 0.5715 GB, free: 9.996 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.4146, allocations: 4.094 kB / 0.5715 GB, free: 9.992 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (0): * Single equations (assignments): 0 * 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.0001616/0.4147, allocations: 166.5 kB / 0.5717 GB, free: 9.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.513e-05/0.4148, allocations: 7.984 kB / 0.5717 GB, free: 9.809 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4148, allocations: 0 / 0.5717 GB, free: 9.809 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.173e-06/0.4148, allocations: 0 / 0.5717 GB, free: 9.809 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.4152, allocations: 465.7 kB / 0.5721 GB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002562/0.4155, allocations: 174 kB / 0.5723 GB, free: 9.148 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.637e-05/0.4156, allocations: 55.36 kB / 0.5723 GB, free: 9.074 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.44e-05/0.4156, allocations: 7.438 kB / 0.5723 GB, free: 9.066 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4156, allocations: 7.938 kB / 0.5723 GB, free: 9.059 MB / 414.1 MB Notification: Performance of Templates: time 0.002234/0.4178, allocations: 371.4 kB / 0.5727 GB, free: 8.699 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.5178812625817955]