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.001534/0.001534, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001648/0.001648, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.509/1.509, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.229/0.229, allocations: 44.94 MB / 358.8 MB, free: 6.062 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.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: 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.002143/0.002143, allocations: 65.94 kB / 0.4935 GB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3816, allocations: 65.47 MB / 0.5574 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00156/0.3831, allocations: 477 kB / 0.5579 GB, free: 7.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003711/0.3869, allocations: 2.287 MB / 0.5601 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.236e-05/0.3869, allocations: 0 / 0.5601 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.488e-06/0.3869, allocations: 0 / 0.5601 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.3869, allocations: 4 kB / 0.5601 GB, free: 4.723 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.002927/0.3898, allocations: 1.105 MB / 0.5612 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.553e-05/0.3899, allocations: 4 kB / 0.5612 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.408e-05/0.3899, allocations: 0 / 0.5612 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.732e-05/0.3899, allocations: 4 kB / 0.5612 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.416e-05/0.3899, allocations: 3.984 kB / 0.5612 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.573e-06/0.39, allocations: 4 kB / 0.5612 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.3916, allocations: 0.9755 MB / 0.5622 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.3917, allocations: 0 / 0.5622 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.742e-05/0.3917, allocations: 0 / 0.5622 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006526/0.3923, allocations: 441.5 kB / 0.5626 GB, free: 2.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3923, allocations: 3.938 kB / 0.5626 GB, free: 2.195 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3923, allocations: 0 / 0.5626 GB, free: 2.195 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3923, allocations: 0 / 0.5626 GB, free: 2.195 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.0004982/0.3928, allocations: 367.2 kB / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.3929, allocations: 12.03 kB / 0.563 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.3929, allocations: 0.9375 kB / 0.563 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.393, allocations: 110.5 kB / 0.5631 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.393, allocations: 384 / 0.5631 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.393, allocations: 384 / 0.5631 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.3931, allocations: 59.72 kB / 0.5631 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3932, allocations: 0 / 0.5631 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.3932, allocations: 0 / 0.5631 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.3932, allocations: 3.984 kB / 0.5631 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.393e-05/0.3932, allocations: 29.7 kB / 0.5631 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.3933, allocations: 105.3 kB / 0.5632 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.259e-05/0.3934, allocations: 48.25 kB / 0.5633 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.941e-05/0.3934, allocations: 30.56 kB / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.355e-06/0.3934, allocations: 0 / 0.5633 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/0.3935, allocations: 60.33 kB / 0.5634 GB, free: 1.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3935, allocations: 0 / 0.5634 GB, free: 1.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002265/0.3937, allocations: 122.7 kB / 0.5635 GB, free: 1.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.3938, allocations: 81.05 kB / 0.5636 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.815e-05/0.3939, allocations: 93.81 kB / 0.5637 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.3939, allocations: 25.7 kB / 0.5637 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.617e-05/0.3939, allocations: 88.25 kB / 0.5638 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.3939, allocations: 3.984 kB / 0.5638 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.394, allocations: 17.72 kB / 0.5638 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3941, allocations: 310.8 kB / 0.5641 GB, free: 444 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.029e-05/0.3942, allocations: 29.7 kB / 0.5641 GB, free: 408 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.104e-05/0.3942, allocations: 29.64 kB / 0.5641 GB, free: 372 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.369e-05/0.3942, allocations: 60.27 kB / 0.5642 GB, free: 296 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3942, allocations: 0 / 0.5642 GB, free: 296 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001027/0.3943, allocations: 97.03 kB / 0.5643 GB, free: 180 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.3944, allocations: 40.39 kB / 0.5643 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3944, allocations: 0 / 0.5643 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3944, allocations: 3.938 kB / 0.5643 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.3944, allocations: 0 / 0.5643 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3944, allocations: 4 kB / 0.5643 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.3944, allocations: 0 / 0.5643 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3944, allocations: 0 / 0.5643 GB, free: 128 kB / 398.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.0001294/0.3946, allocations: 139.5 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-06/0.3946, allocations: 0 / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.266e-05/0.3946, allocations: 6.938 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3946, allocations: 0 / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3946, allocations: 4 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3946, allocations: 0 / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.442e-05/0.3947, allocations: 101.3 kB / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3947, allocations: 0 / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.3947, allocations: 3.984 kB / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3947, allocations: 4 kB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.3947, allocations: 0 / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.3947, allocations: 3.938 kB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3947, allocations: 4 kB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.3948, allocations: 120.5 kB / 0.5647 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.108e-06/0.3948, allocations: 4.031 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.3948, allocations: 0 / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.3948, allocations: 3.938 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.3949, allocations: 4 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.3949, allocations: 0 / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.834e-05/0.3949, allocations: 75.28 kB / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3949, allocations: 0 / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004619/0.3954, allocations: 159.5 kB / 0.5649 GB, free: 15.43 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.0007933/0.3962, allocations: 388.6 kB / 0.5653 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.3963, allocations: 110.8 kB / 0.5654 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3963, allocations: 0 / 0.5654 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.947e-05/0.3964, allocations: 93.16 kB / 0.5655 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.3965, allocations: 7.031 kB / 0.5655 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002049/0.3967, allocations: 110.6 kB / 0.5656 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.048e-05/0.3968, allocations: 59.34 kB / 0.5657 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.46e-06/0.3968, allocations: 0 / 0.5657 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.332e-05/0.3968, allocations: 7.438 kB / 0.5657 GB, free: 14.57 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3968, allocations: 0 / 0.5657 GB, free: 14.57 MB / 414.1 MB Notification: Performance of Templates: time 0.009145/0.4059, allocations: 4.604 MB / 0.5702 GB, free: 9.965 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.5285079553723335]