Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 112.7 kB / 18.45 MB, free: 4.621 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.001314/0.001314, allocations: 185.2 kB / 19.38 MB, free: 3.699 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.305/1.305, allocations: 222.9 MB / 243.1 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.2009/0.2009, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3269, allocations: 60.82 MB / 0.5195 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001469/0.3284, allocations: 487 kB / 0.52 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.3313, allocations: 2.28 MB / 0.5222 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.944e-05/0.3314, allocations: 0 / 0.5222 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.273e-05/0.3314, allocations: 0 / 0.5222 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3314, allocations: 1.031 kB / 0.5222 GB, free: 1.703 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.002748/0.3342, allocations: 1.133 MB / 0.5233 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.675e-05/0.3342, allocations: 1.5 kB / 0.5233 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.131e-05/0.3343, allocations: 2.266 kB / 0.5233 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.403e-05/0.3343, allocations: 0 / 0.5233 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.997e-05/0.3343, allocations: 5.422 kB / 0.5233 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-06/0.3343, allocations: 0 / 0.5233 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00148/0.3358, allocations: 0.9911 MB / 0.5243 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.023e-06/0.3358, allocations: 1.438 kB / 0.5243 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.84e-05/0.3358, allocations: 4 kB / 0.5243 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005692/0.3364, allocations: 421.8 kB / 0.5247 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3364, allocations: 0.75 kB / 0.5247 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3364, allocations: 0 / 0.5247 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.3364, allocations: 1.312 kB / 0.5247 GB, free: 0.5742 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.0003393/0.3368, allocations: 424.2 kB / 0.5251 GB, free: 152 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3368, allocations: 9.328 kB / 0.5251 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.3369, allocations: 2.125 kB / 0.5251 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.892e-05/0.337, allocations: 165.5 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.337, allocations: 1.656 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.337, allocations: 8.312 kB / 0.5253 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.551e-05/0.3371, allocations: 38.38 kB / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3371, allocations: 0 / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.3371, allocations: 4 kB / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3371, allocations: 1.594 kB / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.486e-05/0.3372, allocations: 6 kB / 0.5253 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001215/0.3373, allocations: 143 kB / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.268e-05/0.3374, allocations: 26.34 kB / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.472e-05/0.3374, allocations: 6.703 kB / 0.5255 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.195e-06/0.3374, allocations: 0 / 0.5255 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.472e-05/0.3374, allocations: 70.31 kB / 0.5256 GB, free: 15.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3375, allocations: 0 / 0.5256 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001688/0.3376, allocations: 60.78 kB / 0.5256 GB, free: 15.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.3377, allocations: 79.73 kB / 0.5257 GB, free: 15.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.082e-05/0.3377, allocations: 89.98 kB / 0.5258 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.3378, allocations: 29.7 kB / 0.5258 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.419e-05/0.3378, allocations: 80.8 kB / 0.5259 GB, free: 15.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.3378, allocations: 1.438 kB / 0.5259 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.3378, allocations: 16.25 kB / 0.5259 GB, free: 15.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.338, allocations: 313.2 kB / 0.5262 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.338, allocations: 0 / 0.5262 GB, free: 14.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.042e-06/0.338, allocations: 2.406 kB / 0.5262 GB, free: 14.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.461e-05/0.338, allocations: 68.33 kB / 0.5263 GB, free: 14.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.338, allocations: 0 / 0.5263 GB, free: 14.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.63e-05/0.3381, allocations: 64.86 kB / 0.5263 GB, free: 14.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.3382, allocations: 36.47 kB / 0.5264 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3382, allocations: 0 / 0.5264 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.3382, allocations: 0 / 0.5264 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.3382, allocations: 0 / 0.5264 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.3382, allocations: 2.609 kB / 0.5264 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.3382, allocations: 0 / 0.5264 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.3382, allocations: 0 / 0.5264 GB, free: 14.7 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.263e-05/0.3383, allocations: 138.9 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-06/0.3383, allocations: 6.531 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.007e-05/0.3384, allocations: 7.078 kB / 0.5265 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3384, allocations: 0 / 0.5265 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3384, allocations: 6.344 kB / 0.5265 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3384, allocations: 0 / 0.5265 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.97e-05/0.3385, allocations: 150 kB / 0.5267 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3385, allocations: 3.938 kB / 0.5267 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.3385, allocations: 3.938 kB / 0.5267 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3385, allocations: 8.734 kB / 0.5267 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.3385, allocations: 1.969 kB / 0.5267 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3385, allocations: 0 / 0.5267 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3385, allocations: 0 / 0.5267 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.723e-05/0.3386, allocations: 97.31 kB / 0.5268 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.313e-05/0.3387, allocations: 77.91 kB / 0.5269 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.3387, allocations: 5.562 kB / 0.5269 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.198e-06/0.3387, allocations: 1.438 kB / 0.5269 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.3387, allocations: 4.688 kB / 0.5269 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.3387, allocations: 5.094 kB / 0.5269 GB, free: 14.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.841e-05/0.3388, allocations: 76.17 kB / 0.5269 GB, free: 14.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3388, allocations: 0 / 0.5269 GB, free: 14.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000442/0.3392, allocations: 137.7 kB / 0.5271 GB, free: 14.02 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.000663/0.3399, allocations: 362 kB / 0.5274 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.601e-05/0.34, allocations: 66.77 kB / 0.5275 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.34, allocations: 0 / 0.5275 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.37e-05/0.34, allocations: 55.28 kB / 0.5275 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001168/0.3402, allocations: 6.875 kB / 0.5275 GB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001734/0.3403, allocations: 102.7 kB / 0.5276 GB, free: 13.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.3406, allocations: 0.6754 MB / 0.5283 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.3406, allocations: 8.812 kB / 0.5283 GB, free: 12.88 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3406, allocations: 0 / 0.5283 GB, free: 12.88 MB / 398.1 MB Notification: Performance of Templates: time 0.007173/0.3478, allocations: 3.628 MB / 0.5319 GB, free: 11.21 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches