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.001065/0.001065, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001126/0.001126, allocations: 179.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.224/0.224, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 59.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5014/0.5028, allocations: 60.83 MB / 0.5189 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001744/0.5045, allocations: 487.7 kB / 0.5193 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003952/0.5085, allocations: 2.283 MB / 0.5216 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.785e-05/0.5086, allocations: 0 / 0.5216 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.5086, allocations: 1.031 kB / 0.5216 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.035e-06/0.5087, allocations: 0 / 0.5216 GB, free: 1.953 MB / 382.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.003067/0.5117, allocations: 1.121 MB / 0.5227 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.066e-05/0.5118, allocations: 10.97 kB / 0.5227 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.245e-05/0.5119, allocations: 0.7969 kB / 0.5227 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.958e-05/0.5119, allocations: 1.312 kB / 0.5227 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.645e-05/0.5119, allocations: 1.312 kB / 0.5227 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.5119, allocations: 0 / 0.5227 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001915/0.5139, allocations: 0.9905 MB / 0.5236 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.5139, allocations: 0.5156 kB / 0.5236 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.5139, allocations: 6.109 kB / 0.5236 GB, free: 1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007051/0.5146, allocations: 417.7 kB / 0.524 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.5146, allocations: 0 / 0.524 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5146, allocations: 1.781 kB / 0.524 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.5147, allocations: 0 / 0.524 GB, free: 0.8359 MB / 382.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.0004316/0.5151, allocations: 431.7 kB / 0.5245 GB, free: 412 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.5151, allocations: 13.78 kB / 0.5245 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.125e-05/0.5152, allocations: 1.5 kB / 0.5245 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.126e-05/0.5152, allocations: 169.7 kB / 0.5246 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-06/0.5153, allocations: 1.812 kB / 0.5246 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.5153, allocations: 384 / 0.5246 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.984e-05/0.5154, allocations: 37.97 kB / 0.5247 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-06/0.5154, allocations: 0 / 0.5247 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.5154, allocations: 1.344 kB / 0.5247 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.5154, allocations: 0 / 0.5247 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.024e-05/0.5154, allocations: 5.797 kB / 0.5247 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.5156, allocations: 148.8 kB / 0.5248 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.977e-05/0.5156, allocations: 16.52 kB / 0.5248 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.5156, allocations: 14.09 kB / 0.5248 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-06/0.5157, allocations: 1.344 kB / 0.5249 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.5157, allocations: 66.16 kB / 0.5249 GB, free: 15.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.5157, allocations: 0 / 0.5249 GB, free: 15.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001836/0.5159, allocations: 69.95 kB / 0.525 GB, free: 15.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.516, allocations: 81.23 kB / 0.5251 GB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.321e-05/0.516, allocations: 92.06 kB / 0.5251 GB, free: 15.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.516, allocations: 25.7 kB / 0.5252 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.808e-05/0.5161, allocations: 84.89 kB / 0.5253 GB, free: 15.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.5161, allocations: 2.938 kB / 0.5253 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.5161, allocations: 10.52 kB / 0.5253 GB, free: 15.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5163, allocations: 313 kB / 0.5256 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.049e-05/0.5163, allocations: 0.6094 kB / 0.5256 GB, free: 15.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.929e-06/0.5163, allocations: 4 kB / 0.5256 GB, free: 15.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.504e-05/0.5163, allocations: 61.59 kB / 0.5256 GB, free: 15.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.5163, allocations: 0 / 0.5256 GB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.159e-05/0.5164, allocations: 68.92 kB / 0.5257 GB, free: 14.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/0.5165, allocations: 35.98 kB / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.5165, allocations: 0 / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5165, allocations: 0 / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.733e-06/0.5165, allocations: 1.375 kB / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.5165, allocations: 1.172 kB / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.39e-05/0.5165, allocations: 4.094 kB / 0.5257 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-06/0.5165, allocations: 1.375 kB / 0.5257 GB, free: 14.95 MB / 398.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 8.426e-05/0.5166, allocations: 134.9 kB / 0.5259 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/0.5167, allocations: 8.734 kB / 0.5259 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.094e-05/0.5167, allocations: 8.453 kB / 0.5259 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.5167, allocations: 0.7031 kB / 0.5259 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5167, allocations: 0 / 0.5259 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5167, allocations: 5.312 kB / 0.5259 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.5168, allocations: 153.3 kB / 0.526 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5168, allocations: 4 kB / 0.526 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.443e-06/0.5168, allocations: 0.6094 kB / 0.526 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.5168, allocations: 5.312 kB / 0.526 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.5169, allocations: 0 / 0.526 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.5169, allocations: 1.984 kB / 0.526 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.5169, allocations: 0 / 0.526 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.517, allocations: 92.69 kB / 0.5261 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.517, allocations: 77.84 kB / 0.5262 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.517, allocations: 9.969 kB / 0.5262 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-06/0.5171, allocations: 1.375 kB / 0.5262 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.5171, allocations: 0.5625 kB / 0.5262 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-06/0.5171, allocations: 1.375 kB / 0.5262 GB, free: 14.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.209e-05/0.5171, allocations: 75.28 kB / 0.5263 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5171, allocations: 0 / 0.5263 GB, free: 14.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004321/0.5176, allocations: 142.7 kB / 0.5264 GB, free: 14.27 MB / 398.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.0007707/0.5183, allocations: 370.2 kB / 0.5268 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.5185, allocations: 62.06 kB / 0.5268 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.5185, allocations: 4.062 kB / 0.5268 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.371e-05/0.5185, allocations: 54.81 kB / 0.5269 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.5187, allocations: 3.359 kB / 0.5269 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001956/0.5189, allocations: 73.41 kB / 0.527 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.5191, allocations: 0.6753 MB / 0.5276 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.282e-06/0.5191, allocations: 0 / 0.5276 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.138e-05/0.5191, allocations: 8.812 kB / 0.5276 GB, free: 13.15 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5191, allocations: 0 / 0.5276 GB, free: 13.15 MB / 398.1 MB Notification: Performance of Templates: time 0.009451/0.5286, allocations: 4.297 MB / 0.5318 GB, free: 11.05 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches