Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001524/0.001524, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00153/0.00153, allocations: 210 kB / 24.48 MB, free: 3.938 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.528/1.528, allocations: 230.6 MB / 258.2 MB, free: 7.746 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.2389/0.2389, allocations: 44.94 MB / 359.6 MB, free: 6.113 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.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [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.00223/0.00223, allocations: 67.91 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4031, allocations: 65.47 MB / 0.5582 GB, free: 7.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001873/0.405, allocations: 482.1 kB / 0.5586 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004236/0.4092, allocations: 2.295 MB / 0.5609 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.271e-05/0.4093, allocations: 0 / 0.5609 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.33e-05/0.4093, allocations: 0 / 0.5609 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.003e-06/0.4093, allocations: 0 / 0.5609 GB, free: 4.559 MB / 398.1 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.00317/0.4125, allocations: 1.109 MB / 0.5619 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.59e-05/0.4125, allocations: 0 / 0.5619 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.894e-05/0.4126, allocations: 0 / 0.5619 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.765e-05/0.4126, allocations: 7.984 kB / 0.5619 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.713e-05/0.4126, allocations: 3.938 kB / 0.5619 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.121e-06/0.4126, allocations: 0 / 0.5619 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.4144, allocations: 0.9755 MB / 0.5629 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.4144, allocations: 0 / 0.5629 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.576e-05/0.4144, allocations: 0 / 0.5629 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006937/0.4151, allocations: 441.7 kB / 0.5633 GB, free: 2.035 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4151, allocations: 3.984 kB / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4151, allocations: 0 / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.4151, allocations: 0 / 0.5633 GB, free: 2.031 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0006189/0.4157, allocations: 367.2 kB / 0.5637 GB, free: 1.637 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.4158, allocations: 8.031 kB / 0.5637 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.4158, allocations: 0.9375 kB / 0.5637 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.4159, allocations: 110.5 kB / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.4159, allocations: 384 / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.416, allocations: 384 / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.4161, allocations: 67.66 kB / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.4161, allocations: 0 / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.4161, allocations: 0 / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4161, allocations: 0 / 0.5639 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.633e-05/0.4161, allocations: 37.69 kB / 0.5639 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.4163, allocations: 101.2 kB / 0.564 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.436e-05/0.4164, allocations: 48.25 kB / 0.564 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.123e-05/0.4164, allocations: 30.56 kB / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.4164, allocations: 0 / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.037e-05/0.4165, allocations: 64.33 kB / 0.5641 GB, free: 1.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4165, allocations: 0 / 0.5641 GB, free: 1.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002526/0.4167, allocations: 122.7 kB / 0.5642 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.4168, allocations: 81.05 kB / 0.5643 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.641e-05/0.4169, allocations: 93.81 kB / 0.5644 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.4169, allocations: 29.7 kB / 0.5644 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.4169, allocations: 80.14 kB / 0.5645 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.417, allocations: 0 / 0.5645 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.86e-05/0.417, allocations: 17.7 kB / 0.5645 GB, free: 0.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.4172, allocations: 310.8 kB / 0.5648 GB, free: 276 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.028e-05/0.4172, allocations: 29.7 kB / 0.5649 GB, free: 240 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.049e-05/0.4172, allocations: 25.83 kB / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.933e-05/0.4173, allocations: 68.33 kB / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4173, allocations: 0 / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001028/0.4174, allocations: 89.09 kB / 0.565 GB, free: 16 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-05/0.4174, allocations: 33.64 kB / 0.5651 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.4174, allocations: 0 / 0.5651 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.4175, allocations: 3.938 kB / 0.5651 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.367e-06/0.4175, allocations: 4 kB / 0.5651 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4175, allocations: 0 / 0.5651 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.4175, allocations: 0 / 0.5651 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.4175, allocations: 4.031 kB / 0.5651 GB, free: 15.96 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.0001219/0.4176, allocations: 143.5 kB / 0.5652 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.4176, allocations: 0 / 0.5652 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.295e-05/0.4176, allocations: 6.938 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.4176, allocations: 0 / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4176, allocations: 4 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.4177, allocations: 0 / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.239e-05/0.4177, allocations: 97.33 kB / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.4177, allocations: 0 / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-07/0.4177, allocations: 0 / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-07/0.4177, allocations: 0 / 0.5653 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.4177, allocations: 7.938 kB / 0.5653 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.375e-06/0.4177, allocations: 11.86 kB / 0.5653 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4178, allocations: 4 kB / 0.5653 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.4179, allocations: 116.5 kB / 0.5654 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-06/0.4179, allocations: 3.984 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.4179, allocations: 0 / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.4179, allocations: 3.938 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.4179, allocations: 7.984 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.4179, allocations: 0 / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.277e-05/0.418, allocations: 75.28 kB / 0.5655 GB, free: 15.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.418, allocations: 4.031 kB / 0.5655 GB, free: 15.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004848/0.4185, allocations: 163.5 kB / 0.5657 GB, free: 15.25 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.0008276/0.4193, allocations: 380.3 kB / 0.5661 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.4195, allocations: 114.8 kB / 0.5662 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4195, allocations: 0 / 0.5662 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.594e-05/0.4195, allocations: 85.09 kB / 0.5662 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.4197, allocations: 0 / 0.5662 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002892/0.42, allocations: 140.3 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.53e-05/0.42, allocations: 55.36 kB / 0.5664 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.607e-05/0.42, allocations: 7.438 kB / 0.5664 GB, free: 14.38 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.42, allocations: 128 / 0.5664 GB, free: 14.38 MB / 414.1 MB Notification: Performance of Templates: time 0.007082/0.4271, allocations: 3.931 MB / 0.5703 GB, free: 10.45 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 7.903769795782864]