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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 222.9 MB / 241.6 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 105.8 kB / 291.8 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3855/0.3855, allocations: 44.14 MB / 386.1 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 51.92 kB / 457.7 MB, free: 2.301 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.449/0.4501, allocations: 60.81 MB / 0.5064 GB, free: 38.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001916/0.4521, allocations: 0.527 MB / 0.5069 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.4552, allocations: 2.345 MB / 0.5092 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.408e-05/0.4553, allocations: 0 / 0.5092 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.4553, allocations: 0 / 0.5092 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.4553, allocations: 0 / 0.5092 GB, free: 36.24 MB / 378.7 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.002158/0.4575, allocations: 1.041 MB / 0.5102 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.7e-05/0.4575, allocations: 2.594 kB / 0.5102 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.4576, allocations: 3.938 kB / 0.5102 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.433e-05/0.4576, allocations: 3.984 kB / 0.5102 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.676e-05/0.4577, allocations: 2.469 kB / 0.5102 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-06/0.4577, allocations: 0 / 0.5102 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.4591, allocations: 0.955 MB / 0.5111 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-06/0.4591, allocations: 0 / 0.5111 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.4591, allocations: 6.859 kB / 0.5112 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005409/0.4597, allocations: 415.8 kB / 0.5116 GB, free: 35.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4597, allocations: 0 / 0.5116 GB, free: 35.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4597, allocations: 0 / 0.5116 GB, free: 35.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.4597, allocations: 0 / 0.5116 GB, free: 35.17 MB / 378.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.0004028/0.4601, allocations: 424.1 kB / 0.512 GB, free: 34.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4602, allocations: 10.91 kB / 0.512 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/0.4602, allocations: 4.938 kB / 0.512 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.849e-05/0.4603, allocations: 167.6 kB / 0.5121 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.4603, allocations: 384 / 0.5121 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.222e-05/0.4603, allocations: 3.062 kB / 0.5121 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.601e-05/0.4604, allocations: 30.02 kB / 0.5122 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.4604, allocations: 2.594 kB / 0.5122 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.4604, allocations: 0 / 0.5122 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4604, allocations: 0 / 0.5122 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.864e-05/0.4605, allocations: 7.875 kB / 0.5122 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.658e-05/0.4606, allocations: 151.6 kB / 0.5123 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.524e-05/0.4606, allocations: 17.33 kB / 0.5123 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.429e-05/0.4606, allocations: 12.8 kB / 0.5123 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.017e-06/0.4606, allocations: 0 / 0.5123 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.4607, allocations: 62.98 kB / 0.5124 GB, free: 34.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.4607, allocations: 0 / 0.5124 GB, free: 34.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001758/0.4609, allocations: 66.7 kB / 0.5125 GB, free: 34.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.4609, allocations: 81.11 kB / 0.5125 GB, free: 34.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.942e-05/0.4609, allocations: 89.86 kB / 0.5126 GB, free: 33.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.461, allocations: 29.7 kB / 0.5127 GB, free: 33.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.209e-05/0.461, allocations: 80.14 kB / 0.5127 GB, free: 33.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.461, allocations: 2.812 kB / 0.5127 GB, free: 33.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.316e-05/0.461, allocations: 16.53 kB / 0.5128 GB, free: 33.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.4611, allocations: 310.8 kB / 0.5131 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.618e-06/0.4611, allocations: 0 / 0.5131 GB, free: 33.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-06/0.4611, allocations: 4 kB / 0.5131 GB, free: 33.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.546e-05/0.4612, allocations: 61.55 kB / 0.5131 GB, free: 33.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4612, allocations: 0 / 0.5131 GB, free: 33.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.028e-05/0.4612, allocations: 68.34 kB / 0.5132 GB, free: 33.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.4613, allocations: 35.27 kB / 0.5132 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.4613, allocations: 0 / 0.5132 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.4613, allocations: 2.906 kB / 0.5132 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.4613, allocations: 0 / 0.5132 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.4613, allocations: 96 / 0.5132 GB, free: 33.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.626e-05/0.4613, allocations: 6.109 kB / 0.5132 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.4613, allocations: 0 / 0.5132 GB, free: 33.3 MB / 378.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 6.222e-05/0.4614, allocations: 141.6 kB / 0.5134 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.147e-06/0.4614, allocations: 6.875 kB / 0.5134 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.291e-05/0.4614, allocations: 6.719 kB / 0.5134 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.22e-07/0.4614, allocations: 0 / 0.5134 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4615, allocations: 4 kB / 0.5134 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.4615, allocations: 0 / 0.5134 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.936e-05/0.4615, allocations: 151.7 kB / 0.5135 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.4615, allocations: 4 kB / 0.5135 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.4615, allocations: 0 / 0.5135 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.4615, allocations: 3.938 kB / 0.5135 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-06/0.4616, allocations: 0 / 0.5135 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4616, allocations: 0 / 0.5135 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.4616, allocations: 6.844 kB / 0.5135 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.4618, allocations: 0.647 MB / 0.5142 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.801e-05/0.4618, allocations: 77.11 kB / 0.5142 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.4618, allocations: 3.938 kB / 0.5142 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-06/0.4618, allocations: 3.938 kB / 0.5142 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/0.4619, allocations: 5.969 kB / 0.5143 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.4619, allocations: 0 / 0.5143 GB, free: 32.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.244e-05/0.4619, allocations: 75.28 kB / 0.5143 GB, free: 32.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4619, allocations: 0 / 0.5143 GB, free: 32.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005172/0.4624, allocations: 147.6 kB / 0.5145 GB, free: 32.03 MB / 378.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.0008315/0.4633, allocations: 372.9 kB / 0.5148 GB, free: 31.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.697e-05/0.4634, allocations: 68.08 kB / 0.5149 GB, free: 31.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4634, allocations: 0 / 0.5149 GB, free: 31.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.4634, allocations: 54.12 kB / 0.5149 GB, free: 31.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.4635, allocations: 4.969 kB / 0.5149 GB, free: 31.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002185/0.4638, allocations: 185.1 kB / 0.5151 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.4639, allocations: 0.6692 MB / 0.5158 GB, free: 30.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.544e-06/0.4639, allocations: 3.938 kB / 0.5158 GB, free: 30.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.155e-05/0.4639, allocations: 10.75 kB / 0.5158 GB, free: 30.81 MB / 378.7 MB Notification: Performance of SimCode: time 1.91e-07/0.4639, allocations: 4 kB / 0.5158 GB, free: 30.8 MB / 378.7 MB Notification: Performance of Templates: time 0.006773/0.4707, allocations: 4.287 MB / 0.52 GB, free: 30.35 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches