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.001179/0.001179, allocations: 111.8 kB / 18.45 MB, free: 4.617 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.001463/0.001463, allocations: 190 kB / 19.39 MB, free: 3.688 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.353/1.353, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.1963/0.1963, allocations: 44.19 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 63.91 kB / 471.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3807, allocations: 60.81 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001798/0.3826, allocations: 483 kB / 0.52 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003465/0.3861, allocations: 2.283 MB / 0.5222 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.753e-05/0.3861, allocations: 1.312 kB / 0.5222 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.193e-05/0.3861, allocations: 0 / 0.5222 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.123e-06/0.3862, allocations: 0 / 0.5222 GB, free: 1.711 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.002922/0.3891, allocations: 1.137 MB / 0.5233 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.44e-05/0.3892, allocations: 2.5 kB / 0.5233 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.782e-05/0.3892, allocations: 0.7969 kB / 0.5233 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.497e-05/0.3892, allocations: 0.8125 kB / 0.5233 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.228e-05/0.3893, allocations: 5.141 kB / 0.5233 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.763e-06/0.3893, allocations: 4 kB / 0.5233 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.391, allocations: 0.9919 MB / 0.5243 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.391, allocations: 0 / 0.5243 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.807e-05/0.391, allocations: 1.531 kB / 0.5243 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007378/0.3918, allocations: 417.6 kB / 0.5247 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3918, allocations: 1.375 kB / 0.5247 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3918, allocations: 0 / 0.5247 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.3918, allocations: 0 / 0.5247 GB, free: 0.5859 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.0004563/0.3923, allocations: 440.5 kB / 0.5251 GB, free: 148 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.3923, allocations: 8.812 kB / 0.5251 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.3924, allocations: 0.9375 kB / 0.5251 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.3925, allocations: 163.2 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.3925, allocations: 4.312 kB / 0.5253 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.3925, allocations: 5.688 kB / 0.5253 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.3927, allocations: 37.97 kB / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3927, allocations: 0 / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.3927, allocations: 0 / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3927, allocations: 0.5156 kB / 0.5253 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.406e-05/0.3927, allocations: 5.375 kB / 0.5254 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002018/0.3929, allocations: 144.5 kB / 0.5255 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.805e-05/0.393, allocations: 21.89 kB / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.192e-05/0.393, allocations: 6.844 kB / 0.5255 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.739e-06/0.393, allocations: 3.938 kB / 0.5255 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/0.3931, allocations: 62.75 kB / 0.5256 GB, free: 15.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.3931, allocations: 4 kB / 0.5256 GB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002194/0.3933, allocations: 61.84 kB / 0.5256 GB, free: 15.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.3934, allocations: 81.72 kB / 0.5257 GB, free: 15.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.42e-05/0.3935, allocations: 89.86 kB / 0.5258 GB, free: 15.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3935, allocations: 27.05 kB / 0.5258 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.3935, allocations: 80.14 kB / 0.5259 GB, free: 15.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.3936, allocations: 2.281 kB / 0.5259 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.3936, allocations: 11.03 kB / 0.5259 GB, free: 15.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3938, allocations: 316.8 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.49e-05/0.3938, allocations: 4.609 kB / 0.5262 GB, free: 14.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.444e-06/0.3938, allocations: 5.281 kB / 0.5262 GB, free: 14.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.059e-05/0.3939, allocations: 65.83 kB / 0.5263 GB, free: 14.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3939, allocations: 0 / 0.5263 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.764e-05/0.394, allocations: 59.56 kB / 0.5264 GB, free: 14.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.414e-05/0.394, allocations: 32 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3941, allocations: 5.406 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3941, allocations: 4.094 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.625e-06/0.3941, allocations: 0.6562 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3941, allocations: 0 / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.728e-05/0.3941, allocations: 1.531 kB / 0.5264 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.3941, allocations: 0.8438 kB / 0.5264 GB, free: 14.71 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 0.0001117/0.3943, allocations: 135.2 kB / 0.5265 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.3943, allocations: 9.578 kB / 0.5265 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.675e-05/0.3943, allocations: 11.02 kB / 0.5265 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3943, allocations: 5.703 kB / 0.5266 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3943, allocations: 7.938 kB / 0.5266 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.601e-05/0.3944, allocations: 77.91 kB / 0.5266 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.3944, allocations: 1.781 kB / 0.5266 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-06/0.3944, allocations: 1.156 kB / 0.5266 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.138e-05/0.3944, allocations: 1.672 kB / 0.5266 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001608/0.3946, allocations: 193.5 kB / 0.5268 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001992/0.3948, allocations: 254.4 kB / 0.5271 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.556e-05/0.3948, allocations: 7.406 kB / 0.5271 GB, free: 13.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.3949, allocations: 75.28 kB / 0.5271 GB, free: 13.9 MB / 398.1 MB Notification: Performance of Backend: time 1.8e-07/0.3949, allocations: 0 / 0.5271 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.396, allocations: 399.9 kB / 0.5275 GB, free: 13.68 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004119/0.3965, allocations: 0.5761 MB / 0.5281 GB, free: 13.05 MB / 398.1 MB Notification: Performance of Templates: time 0.008567/0.405, allocations: 4.309 MB / 0.5323 GB, free: 11.01 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