Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.001369/0.001369, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.001479, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 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 1.542/1.542, allocations: 230.5 MB / 258.1 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.236/0.236, allocations: 46.95 MB / 361.6 MB, free: 4.027 MB / 286.1 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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002506/0.002506, allocations: 91.8 kB / 0.4973 GB, free: 7.098 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3115, allocations: 66.09 MB / 0.5619 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001737/0.3132, allocations: 469.2 kB / 0.5623 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003909/0.3171, allocations: 2.287 MB / 0.5646 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.714e-05/0.3171, allocations: 4 kB / 0.5646 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.818e-05/0.3172, allocations: 3.938 kB / 0.5646 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.26e-06/0.3172, allocations: 0 / 0.5646 GB, free: 1.246 MB / 398.1 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.003084/0.3203, allocations: 1.108 MB / 0.5657 GB, free: 144 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.368e-05/0.3203, allocations: 0 / 0.5657 GB, free: 144 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.644e-05/0.3204, allocations: 4 kB / 0.5657 GB, free: 140 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.441e-05/0.3204, allocations: 4 kB / 0.5657 GB, free: 136 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.178e-05/0.3204, allocations: 0 / 0.5657 GB, free: 136 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-06/0.3204, allocations: 0 / 0.5657 GB, free: 136 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001776/0.3222, allocations: 0.9717 MB / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.3222, allocations: 3.938 kB / 0.5666 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.184e-05/0.3222, allocations: 7.938 kB / 0.5666 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006814/0.3229, allocations: 441.5 kB / 0.567 GB, free: 14.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3229, allocations: 0 / 0.567 GB, free: 14.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3229, allocations: 0 / 0.567 GB, free: 14.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.3229, allocations: 4 kB / 0.567 GB, free: 14.72 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.0004507/0.3233, allocations: 359.3 kB / 0.5674 GB, free: 14.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3234, allocations: 12.03 kB / 0.5674 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.143e-05/0.3234, allocations: 4.922 kB / 0.5674 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.3235, allocations: 106.5 kB / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3235, allocations: 384 / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.3236, allocations: 384 / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.3237, allocations: 63.66 kB / 0.5676 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3237, allocations: 0 / 0.5676 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.3237, allocations: 0 / 0.5676 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3237, allocations: 0 / 0.5676 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.726e-05/0.3237, allocations: 33.7 kB / 0.5676 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001151/0.3238, allocations: 101.2 kB / 0.5677 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.458e-05/0.3239, allocations: 48.31 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.807e-05/0.3239, allocations: 30.56 kB / 0.5678 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.324, allocations: 0 / 0.5678 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.324, allocations: 64.27 kB / 0.5678 GB, free: 13.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 2.826e-06/0.324, allocations: 3.984 kB / 0.5678 GB, free: 13.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000224/0.3242, allocations: 122.7 kB / 0.568 GB, free: 13.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.3243, allocations: 81.05 kB / 0.568 GB, free: 13.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.754e-05/0.3244, allocations: 93.94 kB / 0.5681 GB, free: 13.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.3244, allocations: 29.7 kB / 0.5682 GB, free: 13.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.494e-05/0.3244, allocations: 84.14 kB / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.3244, allocations: 0 / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.3244, allocations: 13.66 kB / 0.5682 GB, free: 13.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3246, allocations: 318.8 kB / 0.5686 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.704e-05/0.3246, allocations: 29.7 kB / 0.5686 GB, free: 12.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.02e-05/0.3246, allocations: 25.7 kB / 0.5686 GB, free: 12.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.317e-05/0.3247, allocations: 64.2 kB / 0.5687 GB, free: 12.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3247, allocations: 0 / 0.5687 GB, free: 12.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.604e-05/0.3248, allocations: 97.16 kB / 0.5688 GB, free: 12.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.3248, allocations: 33.7 kB / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3248, allocations: 0 / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3248, allocations: 3.938 kB / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.3249, allocations: 0 / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3249, allocations: 0 / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.385e-05/0.3249, allocations: 0 / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.3249, allocations: 0 / 0.5688 GB, free: 12.66 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 9.991e-05/0.325, allocations: 135.5 kB / 0.5689 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.069e-05/0.325, allocations: 3.984 kB / 0.5689 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.644e-05/0.325, allocations: 10.97 kB / 0.5689 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.325, allocations: 0 / 0.5689 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.325, allocations: 4 kB / 0.5689 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.325, allocations: 7.938 kB / 0.5689 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.881e-05/0.3251, allocations: 93.33 kB / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3251, allocations: 0 / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-07/0.3251, allocations: 0 / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3251, allocations: 0 / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.3251, allocations: 4 kB / 0.569 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3251, allocations: 3.938 kB / 0.569 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3251, allocations: 0 / 0.569 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.3252, allocations: 120.5 kB / 0.5692 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-06/0.3252, allocations: 4 kB / 0.5692 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.3253, allocations: 3.984 kB / 0.5692 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.069e-05/0.3253, allocations: 7.938 kB / 0.5692 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.414e-05/0.3253, allocations: 3.938 kB / 0.5692 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.3253, allocations: 0 / 0.5692 GB, free: 12.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.083e-05/0.3253, allocations: 75.28 kB / 0.5692 GB, free: 12.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3253, allocations: 0 / 0.5692 GB, free: 12.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004902/0.3258, allocations: 159.5 kB / 0.5694 GB, free: 11.95 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.0007763/0.3266, allocations: 389.5 kB / 0.5698 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.3267, allocations: 110.8 kB / 0.5699 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3267, allocations: 4.062 kB / 0.5699 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.401e-05/0.3268, allocations: 85.09 kB / 0.57 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3269, allocations: 2.391 kB / 0.57 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002351/0.3271, allocations: 136.4 kB / 0.5701 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.097e-05/0.3272, allocations: 55.36 kB / 0.5701 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.456e-05/0.3272, allocations: 7.438 kB / 0.5702 GB, free: 11.07 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3272, allocations: 0 / 0.5702 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Templates: time 0.007804/0.335, allocations: 3.931 MB / 0.574 GB, free: 7.137 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 7.72529884474352]