Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.001206/0.001206, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001792/0.002998, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001029/0.001029, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001161/0.00219, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.117/1.117, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1205/1.237, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.2972/0.2972, allocations: 32.78 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02531/0.3225, allocations: 12.54 MB / 289.3 MB, free: 8.672 MB / 282.7 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.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 290.6 MB, free: 7.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.596e-05, allocations: 2.312 kB / 290.6 MB, free: 7.68 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002159/0.002185, allocations: 0.5298 MB / 291.1 MB, free: 7.273 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003945/0.00613, allocations: 2.379 MB / 293.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.643e-05/0.006157, allocations: 2.906 kB / 293.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.096e-05/0.006168, allocations: 0 / 293.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.367e-06/0.006171, allocations: 0 / 293.5 MB, free: 5.426 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.002365/0.008536, allocations: 1.082 MB / 294.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.669e-05/0.008603, allocations: 7.984 kB / 294.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.98e-05/0.008653, allocations: 4.625 kB / 294.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.049e-05/0.008693, allocations: 0 / 294.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.445e-05/0.008727, allocations: 3.984 kB / 294.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-06/0.008737, allocations: 0 / 294.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.01009, allocations: 1.045 MB / 295.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.165e-05/0.0101, allocations: 0 / 295.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.01012, allocations: 4 kB / 295.6 MB, free: 3.273 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005066/0.01062, allocations: 451 kB / 296.1 MB, free: 2.832 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.82e-05/0.01064, allocations: 11.94 kB / 296.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.01064, allocations: 0 / 296.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.01066, allocations: 0 / 296.1 MB, free: 2.82 MB / 282.7 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.0003744/0.01104, allocations: 401.5 kB / 296.5 MB, free: 2.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.01107, allocations: 12.03 kB / 296.5 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.0111, allocations: 0.9375 kB / 296.5 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.687e-05/0.01116, allocations: 105.7 kB / 296.6 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.01117, allocations: 384 / 296.6 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-06/0.01118, allocations: 4.375 kB / 296.6 MB, free: 2.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.952e-05/0.01126, allocations: 71.94 kB / 296.7 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.01127, allocations: 4.188 kB / 296.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.01127, allocations: 4.375 kB / 296.7 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.01128, allocations: 3.938 kB / 296.7 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.909e-05/0.0113, allocations: 25.7 kB / 296.7 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.19e-05/0.01137, allocations: 57.05 kB / 296.7 MB, free: 2.059 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.381e-05/0.01142, allocations: 44.22 kB / 296.8 MB, free: 2 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.745e-05/0.01143, allocations: 34.66 kB / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-06/0.01144, allocations: 0 / 296.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.01148, allocations: 60.25 kB / 296.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.01148, allocations: 4 kB / 296.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001388/0.01162, allocations: 114.8 kB / 297 MB, free: 1.742 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.01166, allocations: 81.05 kB / 297.1 MB, free: 1.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.5e-05/0.01169, allocations: 97.84 kB / 297.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.946e-06/0.0117, allocations: 25.7 kB / 297.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.114e-05/0.01172, allocations: 80.14 kB / 297.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.01174, allocations: 0 / 297.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.01177, allocations: 13.72 kB / 297.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.394e-05/0.01186, allocations: 314.8 kB / 297.6 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.01188, allocations: 25.7 kB / 297.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.37e-05/0.01189, allocations: 29.7 kB / 297.7 MB, free: 1.023 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.36e-05/0.01193, allocations: 68.44 kB / 297.7 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01194, allocations: 0 / 297.7 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.922e-05/0.01199, allocations: 81.11 kB / 297.8 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.01202, allocations: 37.64 kB / 297.8 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.01203, allocations: 3.938 kB / 297.8 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.576e-06/0.01204, allocations: 0 / 297.8 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.234e-06/0.01205, allocations: 3.984 kB / 297.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.01205, allocations: 0 / 297.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.01207, allocations: 0 / 297.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.01208, allocations: 7.938 kB / 297.9 MB, free: 0.7852 MB / 282.7 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 7.254e-05/0.01215, allocations: 143.6 kB / 298 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.919e-06/0.01216, allocations: 4 kB / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-06/0.01217, allocations: 3 kB / 298 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.01217, allocations: 3.984 kB / 298 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.01217, allocations: 0 / 298 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01217, allocations: 0 / 298 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.993e-05/0.01223, allocations: 78.52 kB / 298.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.01224, allocations: 0 / 298.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.31e-07/0.01224, allocations: 0 / 298.1 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-06/0.01224, allocations: 3.938 kB / 298.1 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.01224, allocations: 4 kB / 298.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-06/0.01225, allocations: 0 / 298.1 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01225, allocations: 4 kB / 298.1 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01225, allocations: 0 / 298.1 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.184e-05/0.01233, allocations: 116.4 kB / 298.2 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.01235, allocations: 0 / 298.2 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.789e-06/0.01236, allocations: 4 kB / 298.2 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.078e-05/0.01237, allocations: 0 / 298.2 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.01237, allocations: 0 / 298.2 MB, free: 376 kB / 282.7 MB Notification: Performance of sorting global known variables: time 8.696e-06/0.01238, allocations: 4.859 kB / 298.2 MB, free: 368 kB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01238, allocations: 32 / 298.2 MB, free: 368 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003013/0.01268, allocations: 163.6 kB / 298.4 MB, free: 204 kB / 282.7 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.0006404/0.01332, allocations: 422.7 kB / 298.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.01344, allocations: 119.7 kB / 298.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.01344, allocations: 0 / 298.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.751e-05/0.01348, allocations: 89.97 kB / 299 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.429e-05/0.01354, allocations: 15.8 kB / 299 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001554/0.01369, allocations: 121.1 kB / 299.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.766e-05/0.01372, allocations: 51.36 kB / 299.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.64e-06/0.01373, allocations: 0 / 299.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/0.01376, allocations: 59.48 kB / 299.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01376, allocations: 0 / 299.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of Templates: time 0.007289/0.02105, allocations: 6.099 MB / 305.3 MB, free: 9.148 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.261854661628604]