Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001736/0.001736, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00213/0.00213, allocations: 213.3 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 230.3 MB / 258 MB, free: 8.242 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2378/0.2378, allocations: 46.95 MB / 361.4 MB, free: 4.41 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002553/0.002553, allocations: 79.88 kB / 0.4971 GB, free: 7.551 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.4072, allocations: 66.03 MB / 0.5616 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001807/0.409, allocations: 492.5 kB / 0.5621 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004254/0.4133, allocations: 2.443 MB / 0.5645 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.655e-05/0.4133, allocations: 0 / 0.5645 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.4133, allocations: 0 / 0.5645 GB, free: 1.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.121e-06/0.4133, allocations: 3.938 kB / 0.5645 GB, free: 1.594 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00311/0.4164, allocations: 1.164 MB / 0.5656 GB, free: 440 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.686e-05/0.4165, allocations: 3.938 kB / 0.5656 GB, free: 436 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.493e-05/0.4166, allocations: 0 / 0.5656 GB, free: 436 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.647e-05/0.4166, allocations: 4 kB / 0.5656 GB, free: 432 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.487e-05/0.4166, allocations: 0 / 0.5656 GB, free: 432 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.384e-06/0.4166, allocations: 0 / 0.5656 GB, free: 432 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001981/0.4186, allocations: 1.042 MB / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.067e-06/0.4186, allocations: 0 / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.021e-05/0.4186, allocations: 3.984 kB / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006672/0.4193, allocations: 445.7 kB / 0.5671 GB, free: 14.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4193, allocations: 0 / 0.5671 GB, free: 14.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4193, allocations: 0 / 0.5671 GB, free: 14.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.4193, allocations: 0 / 0.5671 GB, free: 14.95 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005572/0.4199, allocations: 363.3 kB / 0.5674 GB, free: 14.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.4199, allocations: 12.03 kB / 0.5674 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.42, allocations: 0.9375 kB / 0.5674 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.4201, allocations: 114.5 kB / 0.5675 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.4201, allocations: 8.25 kB / 0.5675 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4201, allocations: 384 / 0.5675 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.4203, allocations: 34.02 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4203, allocations: 0 / 0.5676 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.4203, allocations: 3.938 kB / 0.5676 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.4203, allocations: 0 / 0.5676 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.406e-05/0.4203, allocations: 4 kB / 0.5676 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001838/0.4205, allocations: 124.7 kB / 0.5677 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.605e-05/0.4206, allocations: 26.55 kB / 0.5677 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.752e-05/0.4206, allocations: 4.859 kB / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.497e-06/0.4206, allocations: 0 / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.464e-05/0.4207, allocations: 60.2 kB / 0.5678 GB, free: 14.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.4207, allocations: 0 / 0.5678 GB, free: 14.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002057/0.4209, allocations: 63.45 kB / 0.5679 GB, free: 14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.4209, allocations: 81.23 kB / 0.5679 GB, free: 13.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.387e-05/0.421, allocations: 97.81 kB / 0.568 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.421, allocations: 29.7 kB / 0.5681 GB, free: 13.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.983e-05/0.4211, allocations: 80.14 kB / 0.5681 GB, free: 13.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.4211, allocations: 0 / 0.5681 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.4211, allocations: 9.719 kB / 0.5681 GB, free: 13.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.4213, allocations: 318.8 kB / 0.5684 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.4213, allocations: 0 / 0.5684 GB, free: 13.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-06/0.4213, allocations: 4 kB / 0.5684 GB, free: 13.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.774e-05/0.4214, allocations: 68.25 kB / 0.5685 GB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4214, allocations: 0 / 0.5685 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.974e-05/0.4215, allocations: 59.41 kB / 0.5686 GB, free: 13.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/0.4215, allocations: 33.64 kB / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.4215, allocations: 0 / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.4215, allocations: 0 / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.705e-06/0.4215, allocations: 4 kB / 0.5686 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.4215, allocations: 7.984 kB / 0.5686 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.801e-05/0.4216, allocations: 4.094 kB / 0.5686 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.4216, allocations: 3.938 kB / 0.5686 GB, free: 13.12 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001663/0.4217, allocations: 135.5 kB / 0.5687 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.4217, allocations: 3.938 kB / 0.5687 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.761e-05/0.4218, allocations: 10.98 kB / 0.5688 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.4218, allocations: 3.938 kB / 0.5688 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4218, allocations: 0 / 0.5688 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.4218, allocations: 0 / 0.5688 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.4219, allocations: 120.8 kB / 0.5689 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4219, allocations: 4 kB / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.51e-07/0.4219, allocations: 0 / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.4219, allocations: 3.938 kB / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.4219, allocations: 0 / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4219, allocations: 0 / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4219, allocations: 0 / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.422, allocations: 98.75 kB / 0.569 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-06/0.422, allocations: 0 / 0.569 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.422, allocations: 11.97 kB / 0.569 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.217e-06/0.422, allocations: 0 / 0.569 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.798e-05/0.4221, allocations: 3.938 kB / 0.569 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.4221, allocations: 0 / 0.569 GB, free: 12.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.554e-05/0.4221, allocations: 75.28 kB / 0.5691 GB, free: 12.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4221, allocations: 0 / 0.5691 GB, free: 12.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004851/0.4226, allocations: 159.5 kB / 0.5692 GB, free: 12.42 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007857/0.4234, allocations: 384.9 kB / 0.5696 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001218/0.4235, allocations: 59.39 kB / 0.5696 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4235, allocations: 0 / 0.5696 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.002e-05/0.4236, allocations: 63.47 kB / 0.5697 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.4237, allocations: 0 / 0.5697 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002071/0.4239, allocations: 81 kB / 0.5698 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.4243, allocations: 0.669 MB / 0.5704 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.085e-06/0.4243, allocations: 3.984 kB / 0.5704 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.863e-05/0.4243, allocations: 11.44 kB / 0.5704 GB, free: 11.08 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4243, allocations: 3.938 kB / 0.5705 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Templates: time 0.009971/0.4343, allocations: 4.617 MB / 0.575 GB, free: 6.457 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexOperations.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: 5.633869984187186]