Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 101.5 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 192.5 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.687/1.687, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2703/0.2703, allocations: 43.53 MB / 313.9 MB, free: 0.5156 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 66.23 kB / 382.7 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1946, allocations: 57.79 MB / 440.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002566/0.1972, allocations: 477.4 kB / 441 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.2006, allocations: 2.312 MB / 443.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.88e-05/0.2006, allocations: 0 / 443.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.2007, allocations: 0 / 443.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.182e-06/0.2007, allocations: 3.938 kB / 443.3 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.203, allocations: 1.128 MB / 444.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.847e-05/0.2031, allocations: 4 kB / 444.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.2031, allocations: 4 kB / 444.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.733e-05/0.2031, allocations: 0 / 444.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.257e-05/0.2032, allocations: 7.922 kB / 444.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.372e-06/0.2032, allocations: 0 / 444.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.2044, allocations: 0.9599 MB / 445.4 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.2044, allocations: 0 / 445.4 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.14e-05/0.2044, allocations: 0 / 445.4 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004732/0.2049, allocations: 427.4 kB / 445.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2049, allocations: 0 / 445.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2049, allocations: 0 / 445.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2049, allocations: 0 / 445.8 MB, free: 1.57 MB / 318.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.0004198/0.2054, allocations: 433.4 kB / 446.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2054, allocations: 15.89 kB / 446.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.2055, allocations: 4.844 kB / 446.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.217e-05/0.2055, allocations: 160.4 kB / 446.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.2056, allocations: 384 / 446.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.2056, allocations: 384 / 446.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.2057, allocations: 42 kB / 446.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.2057, allocations: 0 / 446.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.2057, allocations: 3.938 kB / 446.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2057, allocations: 0 / 446.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.303e-05/0.2058, allocations: 4 kB / 446.5 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.2059, allocations: 145.7 kB / 446.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.638e-05/0.2059, allocations: 18.52 kB / 446.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.549e-05/0.2059, allocations: 12.95 kB / 446.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.544e-06/0.206, allocations: 3.984 kB / 446.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.206, allocations: 60.2 kB / 446.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.206, allocations: 3.984 kB / 446.7 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002121/0.2062, allocations: 63.41 kB / 446.8 MB, free: 444 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2063, allocations: 81.05 kB / 446.8 MB, free: 344 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.811e-05/0.2063, allocations: 89.86 kB / 446.9 MB, free: 244 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.2063, allocations: 29.81 kB / 447 MB, free: 208 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.683e-05/0.2063, allocations: 88.14 kB / 447 MB, free: 116 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.2064, allocations: 0 / 447 MB, free: 116 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.338e-05/0.2064, allocations: 9.719 kB / 447.1 MB, free: 100 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.2066, allocations: 314.8 kB / 447.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.328e-05/0.2067, allocations: 4 kB / 447.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.318e-06/0.2067, allocations: 0 / 447.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.2068, allocations: 64.2 kB / 447.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2068, allocations: 4.062 kB / 447.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.154e-05/0.2069, allocations: 67.33 kB / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.41e-05/0.207, allocations: 33.64 kB / 447.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.207, allocations: 0 / 447.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.207, allocations: 0 / 447.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.207, allocations: 0 / 447.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.207, allocations: 3.984 kB / 447.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.207, allocations: 4 kB / 447.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.2071, allocations: 4 kB / 447.5 MB, free: 15.57 MB / 334.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.0002519/0.2073, allocations: 143.5 kB / 447.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.2073, allocations: 7.938 kB / 447.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.304e-05/0.2074, allocations: 3.125 kB / 447.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2074, allocations: 4 kB / 447.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2074, allocations: 0 / 447.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2074, allocations: 0 / 447.7 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.762e-05/0.2075, allocations: 145.7 kB / 447.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.2075, allocations: 0 / 447.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.081e-06/0.2075, allocations: 7.984 kB / 447.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2075, allocations: 3.938 kB / 447.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.2075, allocations: 4 kB / 447.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2075, allocations: 0 / 447.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2076, allocations: 0 / 447.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.2077, allocations: 98.7 kB / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.099e-05/0.2077, allocations: 77.11 kB / 448 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.2078, allocations: 3.938 kB / 448 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.2078, allocations: 0 / 448 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.949e-05/0.2078, allocations: 8.031 kB / 448 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.2078, allocations: 4 kB / 448 MB, free: 14.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.615e-05/0.2079, allocations: 75.28 kB / 448.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2079, allocations: 0 / 448.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004647/0.2083, allocations: 140 kB / 448.3 MB, free: 14.75 MB / 334.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.0008111/0.2092, allocations: 358.9 kB / 448.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.2093, allocations: 59.41 kB / 448.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2093, allocations: 0 / 448.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.259e-05/0.2094, allocations: 59.39 kB / 448.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/0.2096, allocations: 5.562 kB / 448.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.2099, allocations: 73.14 kB / 448.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.2103, allocations: 0.6729 MB / 449.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.128e-05/0.2104, allocations: 0 / 449.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.55e-05/0.2104, allocations: 11.38 kB / 449.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2104, allocations: 0 / 449.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of Templates: time 0.009311/0.2197, allocations: 4.306 MB / 453.8 MB, free: 9.133 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches