Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.001602/0.001602, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.00157/0.00157, allocations: 213.9 kB / 23.74 MB, free: 4.535 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.567/1.567, allocations: 230.6 MB / 257.5 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2349/0.2349, allocations: 46.94 MB / 360.9 MB, free: 4.227 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+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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002543/0.002543, allocations: 67.89 kB / 0.4966 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3801, allocations: 66.03 MB / 0.5611 GB, free: 4.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001824/0.3819, allocations: 485 kB / 0.5616 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004182/0.3861, allocations: 2.443 MB / 0.5639 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.065e-05/0.3861, allocations: 0 / 0.5639 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.669e-05/0.3861, allocations: 0 / 0.5639 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.141e-06/0.3861, allocations: 4 kB / 0.564 GB, free: 1.469 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.003216/0.3893, allocations: 1.167 MB / 0.5651 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.972e-05/0.3894, allocations: 0 / 0.5651 GB, free: 308 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.029e-05/0.3894, allocations: 0 / 0.5651 GB, free: 308 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.998e-05/0.3895, allocations: 4 kB / 0.5651 GB, free: 304 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.203e-05/0.3895, allocations: 0 / 0.5651 GB, free: 304 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.773e-06/0.3895, allocations: 4 kB / 0.5651 GB, free: 300 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.3913, allocations: 1.038 MB / 0.5661 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.3913, allocations: 0 / 0.5661 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.955e-05/0.3913, allocations: 0 / 0.5661 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006508/0.392, allocations: 449.5 kB / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.392, allocations: 0 / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.392, allocations: 0 / 0.5665 GB, free: 14.82 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.392, allocations: 4 kB / 0.5665 GB, free: 14.82 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.0005196/0.3925, allocations: 367.3 kB / 0.5669 GB, free: 14.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3925, allocations: 12.03 kB / 0.5669 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.3926, allocations: 4.875 kB / 0.5669 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.3927, allocations: 106.5 kB / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3927, allocations: 384 / 0.567 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.852e-05/0.3927, allocations: 4.375 kB / 0.567 GB, free: 14.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.3928, allocations: 30.02 kB / 0.567 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3928, allocations: 0 / 0.567 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.3928, allocations: 0 / 0.567 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3928, allocations: 0 / 0.567 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.244e-05/0.3929, allocations: 11.94 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.393, allocations: 120.7 kB / 0.5672 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.277e-05/0.3931, allocations: 22.59 kB / 0.5672 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.379e-05/0.3931, allocations: 4.859 kB / 0.5672 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.3931, allocations: 0 / 0.5672 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.179e-05/0.3931, allocations: 60.2 kB / 0.5673 GB, free: 13.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 3.095e-06/0.3932, allocations: 7.984 kB / 0.5673 GB, free: 13.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001987/0.3934, allocations: 71.39 kB / 0.5673 GB, free: 13.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/0.3934, allocations: 81.11 kB / 0.5674 GB, free: 13.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.749e-05/0.3935, allocations: 93.81 kB / 0.5675 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.3935, allocations: 25.7 kB / 0.5675 GB, free: 13.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.828e-05/0.3935, allocations: 88.06 kB / 0.5676 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.3936, allocations: 0 / 0.5676 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.3936, allocations: 17.72 kB / 0.5676 GB, free: 13.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3937, allocations: 315 kB / 0.5679 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.3937, allocations: 0 / 0.5679 GB, free: 13.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.599e-06/0.3937, allocations: 0 / 0.5679 GB, free: 13.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.761e-05/0.3938, allocations: 64.25 kB / 0.568 GB, free: 13.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3938, allocations: 0 / 0.568 GB, free: 13.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.664e-05/0.3939, allocations: 63.34 kB / 0.568 GB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.3939, allocations: 37.64 kB / 0.5681 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3939, allocations: 0 / 0.5681 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3939, allocations: 96 / 0.5681 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.3939, allocations: 8 kB / 0.5681 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.394, allocations: 0 / 0.5681 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.394, allocations: 0 / 0.5681 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.394, allocations: 3.984 kB / 0.5681 GB, free: 13 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.0001032/0.3941, allocations: 139.5 kB / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.3941, allocations: 7.875 kB / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.141e-05/0.3941, allocations: 3 kB / 0.5682 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.3941, allocations: 0 / 0.5682 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3941, allocations: 0 / 0.5682 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3941, allocations: 4 kB / 0.5682 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.3942, allocations: 124.8 kB / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3942, allocations: 0 / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3942, allocations: 0 / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3942, allocations: 3.938 kB / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3942, allocations: 0 / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.3942, allocations: 0 / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3942, allocations: 4 kB / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.3944, allocations: 94.77 kB / 0.5685 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-06/0.3944, allocations: 8 kB / 0.5685 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.3944, allocations: 3.938 kB / 0.5685 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.155e-06/0.3944, allocations: 0 / 0.5685 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.3944, allocations: 0 / 0.5685 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.3944, allocations: 0 / 0.5685 GB, free: 12.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.169e-05/0.3945, allocations: 75.28 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3945, allocations: 4 kB / 0.5685 GB, free: 12.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004518/0.3949, allocations: 155.5 kB / 0.5687 GB, free: 12.3 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.0008581/0.3958, allocations: 388.7 kB / 0.5691 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.3959, allocations: 59.41 kB / 0.5691 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3959, allocations: 0 / 0.5691 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.239e-05/0.396, allocations: 63.33 kB / 0.5692 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.3961, allocations: 2.812 kB / 0.5692 GB, free: 11.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002672/0.3964, allocations: 85 kB / 0.5693 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.3968, allocations: 0.669 MB / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.051e-05/0.3968, allocations: 4 kB / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.596e-05/0.3968, allocations: 7.438 kB / 0.5699 GB, free: 10.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3968, allocations: 4.125 kB / 0.5699 GB, free: 10.95 MB / 414.1 MB Notification: Performance of Templates: time 0.009122/0.4059, allocations: 4.618 MB / 0.5744 GB, free: 6.324 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.719649742124602]