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.001081/0.001081, allocations: 109.5 kB / 17.78 MB, free: 5.312 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.001238/0.001238, allocations: 188 kB / 18.71 MB, free: 4.387 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.319/1.319, allocations: 222.9 MB / 242.4 MB, free: 15.2 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.2168/0.2168, allocations: 44.17 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 59.91 kB / 470.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4086/0.41, allocations: 60.83 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001929/0.412, allocations: 483 kB / 0.5193 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004/0.416, allocations: 2.276 MB / 0.5215 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.451e-05/0.4161, allocations: 0 / 0.5215 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.4161, allocations: 4 kB / 0.5216 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.396e-06/0.4162, allocations: 1.219 kB / 0.5216 GB, free: 1.727 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.003022/0.4192, allocations: 1.129 MB / 0.5227 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.027e-05/0.4193, allocations: 6.172 kB / 0.5227 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.155e-05/0.4193, allocations: 1.891 kB / 0.5227 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.184e-05/0.4194, allocations: 0 / 0.5227 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.697e-05/0.4194, allocations: 5.406 kB / 0.5227 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.4194, allocations: 0 / 0.5227 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.4216, allocations: 0.9916 MB / 0.5236 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.375e-05/0.4216, allocations: 3.984 kB / 0.5236 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.723e-05/0.4216, allocations: 9.406 kB / 0.5237 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006031/0.4222, allocations: 413.5 kB / 0.524 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.4223, allocations: 0.75 kB / 0.524 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4223, allocations: 0 / 0.524 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.4223, allocations: 1 kB / 0.524 GB, free: 0.5977 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.0004116/0.4227, allocations: 427.6 kB / 0.5245 GB, free: 172 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.4227, allocations: 10.23 kB / 0.5245 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.4228, allocations: 2.312 kB / 0.5245 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.4229, allocations: 161.3 kB / 0.5246 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.4229, allocations: 1.078 kB / 0.5246 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.4229, allocations: 5.688 kB / 0.5246 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.423, allocations: 37.88 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4231, allocations: 0 / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.4231, allocations: 0 / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.4231, allocations: 4 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.829e-05/0.4231, allocations: 1.891 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.4233, allocations: 148.9 kB / 0.5248 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.008e-05/0.4233, allocations: 17.33 kB / 0.5248 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.758e-05/0.4233, allocations: 6.938 kB / 0.5248 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.647e-06/0.4233, allocations: 3.938 kB / 0.5248 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.738e-05/0.4234, allocations: 66.61 kB / 0.5249 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.4234, allocations: 0 / 0.5249 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000195/0.4236, allocations: 69.52 kB / 0.525 GB, free: 15.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.4237, allocations: 77.77 kB / 0.525 GB, free: 15.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.147e-05/0.4237, allocations: 91.8 kB / 0.5251 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.4238, allocations: 25.7 kB / 0.5252 GB, free: 15.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.902e-05/0.4238, allocations: 80.14 kB / 0.5252 GB, free: 15.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.4238, allocations: 1.375 kB / 0.5252 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.4238, allocations: 12.39 kB / 0.5252 GB, free: 15.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.424, allocations: 320.8 kB / 0.5255 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.066e-05/0.424, allocations: 0 / 0.5255 GB, free: 14.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.618e-06/0.424, allocations: 5.969 kB / 0.5256 GB, free: 14.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.462e-05/0.4241, allocations: 61.05 kB / 0.5256 GB, free: 14.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4241, allocations: 0 / 0.5256 GB, free: 14.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.704e-05/0.4242, allocations: 60.11 kB / 0.5257 GB, free: 14.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.798e-05/0.4242, allocations: 39.89 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4242, allocations: 4.094 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.4243, allocations: 2.031 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.4243, allocations: 0 / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4243, allocations: 0 / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.053e-05/0.4243, allocations: 6.031 kB / 0.5257 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-06/0.4243, allocations: 3.984 kB / 0.5257 GB, free: 14.72 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 9.767e-05/0.4244, allocations: 139.4 kB / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.4244, allocations: 6.016 kB / 0.5259 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.236e-05/0.4244, allocations: 11.02 kB / 0.5259 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.4245, allocations: 8.641 kB / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4245, allocations: 5.312 kB / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4245, allocations: 0 / 0.5259 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.4246, allocations: 149.1 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.4246, allocations: 0 / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.525e-06/0.4246, allocations: 1.938 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.4246, allocations: 3.938 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.4246, allocations: 1.375 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.4246, allocations: 0.6094 kB / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4246, allocations: 0 / 0.526 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.775e-05/0.4247, allocations: 92.89 kB / 0.5261 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.4248, allocations: 79.05 kB / 0.5262 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.4248, allocations: 4.453 kB / 0.5262 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-06/0.4248, allocations: 1.375 kB / 0.5262 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.552e-05/0.4249, allocations: 4.609 kB / 0.5262 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.4249, allocations: 1.375 kB / 0.5262 GB, free: 14.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.083e-05/0.4249, allocations: 75.89 kB / 0.5263 GB, free: 14.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.813e-06/0.4249, allocations: 32 / 0.5263 GB, free: 14.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004621/0.4254, allocations: 146.5 kB / 0.5264 GB, free: 14.04 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.0007779/0.4262, allocations: 359.1 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.4263, allocations: 62.3 kB / 0.5268 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4263, allocations: 0 / 0.5268 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.514e-05/0.4264, allocations: 55.61 kB / 0.5269 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.4265, allocations: 2.438 kB / 0.5269 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002004/0.4267, allocations: 74 kB / 0.527 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.427, allocations: 0.6747 MB / 0.5276 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.063e-06/0.427, allocations: 4.062 kB / 0.5276 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.829e-05/0.427, allocations: 12.72 kB / 0.5276 GB, free: 12.93 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.427, allocations: 1.281 kB / 0.5276 GB, free: 12.93 MB / 398.1 MB Notification: Performance of Templates: time 0.008016/0.4351, allocations: 4.298 MB / 0.5318 GB, free: 10.88 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches