Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.001178/0.001178, allocations: 85.91 kB / 22.22 MB, free: 2.281 MB / 18.57 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.004335/0.004335, allocations: 158.4 kB / 25.61 MB, free: 8.914 MB / 18.57 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 0.9751/0.9751, allocations: 177 MB / 205.9 MB, free: 4.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1627/0.1627, allocations: 34.87 MB / 297.4 MB, free: 13.43 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.308e-05/1.453e-05, allocations: 5.047 kB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0008987/0.0009133, allocations: 487.7 kB / 380.4 MB, free: 22.32 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.003187, allocations: 2.339 MB / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.667e-05/0.003213, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.003229, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.284e-06/0.003236, allocations: 0 / 382.8 MB, free: 19.96 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001566/0.004802, allocations: 1.117 MB / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.997e-05/0.004852, allocations: 0 / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.537e-05/0.004887, allocations: 4 kB / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.492e-05/0.004912, allocations: 0 / 383.9 MB, free: 18.84 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.492e-05/0.004937, allocations: 3.984 kB / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.935e-06/0.004945, allocations: 0 / 383.9 MB, free: 18.83 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008894/0.005835, allocations: 0.9947 MB / 384.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.837e-06/0.005843, allocations: 0 / 384.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.005863, allocations: 4 kB / 384.9 MB, free: 17.83 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005773/0.006441, allocations: 0.5378 MB / 385.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.006442, allocations: 0 / 385.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.006443, allocations: 0 / 385.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.006447, allocations: 0 / 385.4 MB, free: 17.29 MB / 314.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.000317/0.006764, allocations: 469.2 kB / 385.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.006798, allocations: 8.031 kB / 385.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.006826, allocations: 8.875 kB / 385.9 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.061e-05/0.006877, allocations: 112.6 kB / 386 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.006891, allocations: 384 / 386 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-06/0.006897, allocations: 384 / 386 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.783e-05/0.006965, allocations: 63.95 kB / 386.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.006971, allocations: 192 / 386.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.069e-06/0.006976, allocations: 384 / 386.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.006982, allocations: 3.938 kB / 386.1 MB, free: 16.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.103e-05/0.006993, allocations: 29.7 kB / 386.1 MB, free: 16.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.305e-05/0.007046, allocations: 89.27 kB / 386.2 MB, free: 16.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.561e-05/0.007082, allocations: 64.7 kB / 386.3 MB, free: 16.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.628e-06/0.007091, allocations: 33.39 kB / 386.3 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-06/0.007094, allocations: 0 / 386.3 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.007116, allocations: 71.14 kB / 386.4 MB, free: 16.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.007117, allocations: 4 kB / 386.4 MB, free: 16.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001253/0.007242, allocations: 110.8 kB / 386.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.007267, allocations: 77.11 kB / 386.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.423e-05/0.007291, allocations: 146.2 kB / 386.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.947e-06/0.007295, allocations: 25.7 kB / 386.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.055e-05/0.007305, allocations: 126.9 kB / 386.9 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.00732, allocations: 7.938 kB / 386.9 MB, free: 15.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.007337, allocations: 15.38 kB / 386.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.372e-05/0.007381, allocations: 496.1 kB / 387.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.07e-05/0.007391, allocations: 33.7 kB / 387.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.235e-06/0.0074, allocations: 29.83 kB / 387.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.97e-05/0.007429, allocations: 63.09 kB / 387.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.007431, allocations: 0 / 387.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.801e-05/0.007469, allocations: 89.09 kB / 387.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.007491, allocations: 32.36 kB / 387.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.007494, allocations: 0 / 387.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.007503, allocations: 0 / 387.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.007504, allocations: 4 kB / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.007507, allocations: 3.938 kB / 387.6 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.699e-06/0.007516, allocations: 3.938 kB / 387.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.007522, allocations: 4.094 kB / 387.6 MB, free: 14.82 MB / 314.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 4.416e-05/0.007566, allocations: 186.3 kB / 387.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.02e-06/0.007571, allocations: 4.281 kB / 387.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.203e-06/0.007578, allocations: 3 kB / 387.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.00758, allocations: 0 / 387.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.007581, allocations: 0 / 387.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.007583, allocations: 4 kB / 387.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.711e-05/0.00762, allocations: 101.2 kB / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.7e-07/0.007621, allocations: 0 / 387.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.007621, allocations: 3.984 kB / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.11e-07/0.007622, allocations: 4 kB / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-06/0.007626, allocations: 4 kB / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.71e-07/0.007626, allocations: 0 / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.007627, allocations: 0 / 387.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.926e-05/0.007676, allocations: 139.7 kB / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.835e-06/0.007679, allocations: 0 / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-06/0.007687, allocations: 4 kB / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.208e-06/0.007691, allocations: 0 / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.468e-06/0.007701, allocations: 0 / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-06/0.007702, allocations: 4 kB / 388.1 MB, free: 14.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.345e-05/0.007716, allocations: 123.2 kB / 388.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007716, allocations: 0 / 388.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002679/0.007984, allocations: 159.5 kB / 388.3 MB, free: 14.02 MB / 314.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.0004441/0.008428, allocations: 425 kB / 388.8 MB, free: 13.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.996e-05/0.008518, allocations: 126.5 kB / 388.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.008519, allocations: 0 / 388.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.8e-05/0.008537, allocations: 88.8 kB / 389 MB, free: 13.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.268e-05/0.00862, allocations: 7.938 kB / 389 MB, free: 13.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001261/0.008746, allocations: 115.5 kB / 389.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.765e-05/0.008763, allocations: 55.22 kB / 389.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.448e-06/0.008768, allocations: 4.125 kB / 389.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.665e-05/0.008795, allocations: 70.2 kB / 389.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.008795, allocations: 0 / 389.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of Templates: time 0.006229/0.01502, allocations: 6.076 MB / 395.3 MB, free: 6.957 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",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.3238727152347565]