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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.00217/0.00217, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.05/2.05, allocations: 222.9 MB / 242.4 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2578/0.2578, allocations: 44.18 MB / 336.8 MB, free: 3.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002826/0.002827, allocations: 61.84 kB / 408.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2146, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.004258/0.219, allocations: 0.5255 MB / 469.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006733/0.2258, allocations: 2.349 MB / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.967e-05/0.2258, allocations: 0 / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.944e-05/0.2259, allocations: 0 / 472 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.885e-06/0.226, allocations: 0 / 472 MB, free: 11.96 MB / 350.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.005244/0.2312, allocations: 1.035 MB / 473.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.424e-05/0.2313, allocations: 4 kB / 473.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.056e-05/0.2314, allocations: 0 / 473.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.65e-05/0.2314, allocations: 4 kB / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.121e-05/0.2315, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.436e-06/0.2315, allocations: 0 / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003239/0.2347, allocations: 0.9677 MB / 474 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.2348, allocations: 0 / 474 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.2348, allocations: 0 / 474 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008572/0.2357, allocations: 267.5 kB / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2357, allocations: 0 / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2357, allocations: 0 / 474.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.2358, allocations: 4 kB / 474.3 MB, free: 9.688 MB / 350.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.0007868/0.2366, allocations: 425.2 kB / 474.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.517e-05/0.2366, allocations: 8.031 kB / 474.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.076e-05/0.2367, allocations: 4.938 kB / 474.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.2369, allocations: 168.3 kB / 474.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.2369, allocations: 384 / 474.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.923e-05/0.237, allocations: 4.375 kB / 474.9 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001398/0.2371, allocations: 30.02 kB / 474.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.2372, allocations: 3.984 kB / 474.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.2372, allocations: 0 / 474.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.2372, allocations: 0 / 474.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.699e-05/0.2373, allocations: 7.984 kB / 475 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002248/0.2375, allocations: 153.6 kB / 475.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.731e-05/0.2376, allocations: 22.55 kB / 475.1 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.339e-05/0.2376, allocations: 4.859 kB / 475.1 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.2377, allocations: 0 / 475.1 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.901e-05/0.2378, allocations: 60.2 kB / 475.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.2378, allocations: 0 / 475.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003229/0.2381, allocations: 71.55 kB / 475.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.2382, allocations: 81.11 kB / 475.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.181e-05/0.2383, allocations: 89.86 kB / 475.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.2383, allocations: 25.7 kB / 475.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.293e-05/0.2384, allocations: 80.14 kB / 475.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.928e-05/0.2385, allocations: 0 / 475.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.2385, allocations: 21.66 kB / 475.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.2387, allocations: 318.8 kB / 475.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.298e-05/0.2388, allocations: 4.031 kB / 475.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.287e-05/0.2388, allocations: 0 / 475.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.241e-05/0.2389, allocations: 60.27 kB / 475.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.2389, allocations: 0 / 475.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001245/0.239, allocations: 59.41 kB / 476 MB, free: 7.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.02e-05/0.2391, allocations: 41.62 kB / 476 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.2391, allocations: 0 / 476 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2392, allocations: 0 / 476 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.973e-06/0.2392, allocations: 4 kB / 476 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2392, allocations: 4.094 kB / 476 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.089e-05/0.2393, allocations: 8.219 kB / 476 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.2393, allocations: 0 / 476 MB, free: 7.691 MB / 350.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.0001612/0.2395, allocations: 139.5 kB / 476.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/0.2395, allocations: 3.938 kB / 476.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.014e-05/0.2395, allocations: 7.078 kB / 476.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2395, allocations: 3.984 kB / 476.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.2396, allocations: 0 / 476.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2396, allocations: 0 / 476.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.2397, allocations: 153.6 kB / 476.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2398, allocations: 0 / 476.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.2398, allocations: 0 / 476.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/0.2398, allocations: 3.938 kB / 476.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.2398, allocations: 3.938 kB / 476.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2398, allocations: 0 / 476.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2398, allocations: 0 / 476.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.24, allocations: 94.73 kB / 476.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.601e-05/0.2401, allocations: 81.14 kB / 476.5 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.2402, allocations: 11.92 kB / 476.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.138e-05/0.2402, allocations: 4 kB / 476.5 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.776e-05/0.2402, allocations: 3.938 kB / 476.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.2403, allocations: 0 / 476.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.118e-05/0.2403, allocations: 75.28 kB / 476.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.2403, allocations: 0 / 476.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008921/0.2412, allocations: 136 kB / 476.7 MB, free: 6.875 MB / 350.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.001557/0.2428, allocations: 375 kB / 477.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.243, allocations: 59.41 kB / 477.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/0.243, allocations: 8.062 kB / 477.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.698e-05/0.2431, allocations: 51.41 kB / 477.2 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.2434, allocations: 7.984 kB / 477.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003828/0.2438, allocations: 100.5 kB / 477.3 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004459/0.2442, allocations: 0.6692 MB / 478 MB, free: 5.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.606e-05/0.2443, allocations: 7.438 kB / 478 MB, free: 5.527 MB / 350.1 MB Notification: Performance of SimCode: time 5.26e-06/0.2443, allocations: 0 / 478 MB, free: 5.527 MB / 350.1 MB Notification: Performance of Templates: time 0.01366/0.258, allocations: 3.612 MB / 481.6 MB, free: 1.91 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches