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.001499/0.001499, allocations: 85.58 kB / 20.68 MB, free: 1.039 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.001492/0.001492, allocations: 157.1 kB / 23.95 MB, free: 4.168 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.499/1.499, allocations: 177 MB / 204.1 MB, free: 9.133 MB / 190.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.2325/0.2325, allocations: 34.26 MB / 294.8 MB, free: 14.5 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.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.663e-06/1.663e-06, allocations: 0 / 442.6 MB, free: 5.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.726e-05/3.892e-05, allocations: 2.281 kB / 442.6 MB, free: 5.316 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002111/0.00215, allocations: 489.2 kB / 443.1 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004318/0.006468, allocations: 2.291 MB / 445.4 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.11e-05/0.006499, allocations: 0 / 445.4 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.006511, allocations: 0 / 445.4 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-06/0.006518, allocations: 0 / 445.4 MB, free: 2.527 MB / 366.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.003458/0.009976, allocations: 1.105 MB / 446.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.513e-05/0.01004, allocations: 0 / 446.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.992e-05/0.0101, allocations: 4 kB / 446.5 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.442e-05/0.01015, allocations: 4 kB / 446.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.181e-05/0.01018, allocations: 0 / 446.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.01019, allocations: 0 / 446.5 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.01216, allocations: 0.9791 MB / 447.5 MB, free: 444 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.01217, allocations: 0 / 447.5 MB, free: 444 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.01219, allocations: 0 / 447.5 MB, free: 444 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2401/0.2523, allocations: 0.5346 MB / 448 MB, free: 16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.2523, allocations: 0.6562 kB / 448 MB, free: 16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2523, allocations: 0 / 448 MB, free: 16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2523, allocations: 2.062 kB / 448 MB, free: 16 MB / 366.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.0004472/0.2527, allocations: 366.5 kB / 448.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2528, allocations: 9.75 kB / 448.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.2528, allocations: 2.578 kB / 448.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.113e-05/0.2529, allocations: 103.6 kB / 448.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.2529, allocations: 4.906 kB / 448.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.2529, allocations: 384 / 448.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.142e-05/0.253, allocations: 57.02 kB / 448.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.253, allocations: 192 / 448.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.253, allocations: 1.781 kB / 448.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.253, allocations: 10.5 kB / 448.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.527e-05/0.253, allocations: 29.95 kB / 448.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.203e-05/0.2531, allocations: 103 kB / 448.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.516e-05/0.2532, allocations: 44.5 kB / 448.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.867e-05/0.2532, allocations: 35.05 kB / 448.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.2532, allocations: 1.344 kB / 448.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.2532, allocations: 60.59 kB / 448.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.2532, allocations: 0 / 448.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001875/0.2534, allocations: 118 kB / 448.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.2535, allocations: 79.56 kB / 449 MB, free: 14.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.318e-05/0.2535, allocations: 100.2 kB / 449.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-06/0.2535, allocations: 25.7 kB / 449.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.157e-05/0.2535, allocations: 81.2 kB / 449.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.2535, allocations: 7.578 kB / 449.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.548e-05/0.2535, allocations: 15.94 kB / 449.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.2536, allocations: 311.4 kB / 449.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.648e-05/0.2536, allocations: 28.88 kB / 449.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.022e-05/0.2536, allocations: 26.89 kB / 449.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.403e-05/0.2537, allocations: 67.77 kB / 449.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2537, allocations: 1.812 kB / 449.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.011e-05/0.2537, allocations: 89.92 kB / 449.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.2538, allocations: 34.98 kB / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2538, allocations: 0 / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2538, allocations: 0.7969 kB / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.2538, allocations: 2.156 kB / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.2538, allocations: 0 / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.916e-05/0.2538, allocations: 5.281 kB / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.2538, allocations: 1.406 kB / 449.8 MB, free: 14.17 MB / 366.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 6.261e-05/0.2539, allocations: 144.9 kB / 449.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-06/0.2539, allocations: 1.75 kB / 449.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.205e-05/0.2539, allocations: 4.75 kB / 449.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.2539, allocations: 0 / 449.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2539, allocations: 0 / 449.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2539, allocations: 6.969 kB / 449.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.39e-05/0.2539, allocations: 99.69 kB / 450 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.2539, allocations: 1.719 kB / 450 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-07/0.2539, allocations: 2.188 kB / 450 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2539, allocations: 0.8438 kB / 450 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.254, allocations: 1.156 kB / 450 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.254, allocations: 1.031 kB / 450 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.254, allocations: 1.562 kB / 450.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.2541, allocations: 124.3 kB / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-06/0.2541, allocations: 1.641 kB / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.2541, allocations: 4.75 kB / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.2541, allocations: 3.719 kB / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.2541, allocations: 0 / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.2541, allocations: 1.125 kB / 450.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.635e-05/0.2541, allocations: 76.94 kB / 450.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2541, allocations: 0 / 450.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004803/0.2546, allocations: 168.9 kB / 450.4 MB, free: 13.66 MB / 366.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.0008034/0.2554, allocations: 416.8 kB / 450.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.918e-05/0.2555, allocations: 117.7 kB / 450.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2555, allocations: 4.062 kB / 450.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.562e-05/0.2555, allocations: 81.92 kB / 451 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.2557, allocations: 2.438 kB / 451 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001922/0.2559, allocations: 103.7 kB / 451.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.911e-05/0.2559, allocations: 55 kB / 451.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.773e-06/0.2559, allocations: 1.75 kB / 451.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.107e-05/0.2559, allocations: 9.781 kB / 451.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2559, allocations: 0 / 451.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01051/0.2664, allocations: 4.678 MB / 455.9 MB, free: 12.63 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.198849409818649]