Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00121/0.00121, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001612, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 79.88 kB / 481.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5243/0.5258, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001719/0.5275, allocations: 472.9 kB / 0.5314 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003759/0.5313, allocations: 2.411 MB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.508e-05/0.5314, allocations: 4 kB / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.578e-05/0.5314, allocations: 0 / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.167e-06/0.5314, allocations: 0 / 0.5338 GB, free: 11.37 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.00306/0.5345, allocations: 1.142 MB / 0.5349 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.988e-05/0.5346, allocations: 9.312 kB / 0.5349 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.64e-05/0.5346, allocations: 5.312 kB / 0.5349 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.679e-05/0.5346, allocations: 7.938 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.416e-05/0.5347, allocations: 1.375 kB / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.5347, allocations: 0 / 0.5349 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001796/0.5365, allocations: 1.034 MB / 0.5359 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.5365, allocations: 1.188 kB / 0.5359 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.386e-05/0.5365, allocations: 0 / 0.5359 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006994/0.5372, allocations: 446.9 kB / 0.5363 GB, free: 9.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.5373, allocations: 1.156 kB / 0.5363 GB, free: 9.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.5373, allocations: 0 / 0.5363 GB, free: 9.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.5373, allocations: 0 / 0.5363 GB, free: 9.82 MB / 398.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.0005241/0.5378, allocations: 440.3 kB / 0.5368 GB, free: 9.375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.5379, allocations: 9.344 kB / 0.5368 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.584e-05/0.5379, allocations: 2.406 kB / 0.5368 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.538, allocations: 164.2 kB / 0.5369 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.538, allocations: 384 / 0.5369 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.5381, allocations: 1.656 kB / 0.5369 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.5382, allocations: 36.52 kB / 0.537 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.5382, allocations: 0 / 0.537 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.5382, allocations: 7.938 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.5382, allocations: 1.344 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.271e-05/0.5383, allocations: 5.406 kB / 0.537 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.5384, allocations: 147 kB / 0.5371 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.343e-05/0.5385, allocations: 19.86 kB / 0.5371 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.685e-05/0.5385, allocations: 6.172 kB / 0.5372 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.418e-06/0.5385, allocations: 0 / 0.5372 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.5386, allocations: 69.36 kB / 0.5372 GB, free: 8.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.5386, allocations: 1.5 kB / 0.5372 GB, free: 8.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002005/0.5388, allocations: 65.73 kB / 0.5373 GB, free: 8.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.5389, allocations: 78.17 kB / 0.5374 GB, free: 8.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.535e-05/0.5389, allocations: 89.86 kB / 0.5374 GB, free: 8.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.5389, allocations: 27.08 kB / 0.5375 GB, free: 8.527 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.197e-05/0.539, allocations: 80.14 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.539, allocations: 1.531 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.539, allocations: 19.22 kB / 0.5376 GB, free: 8.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.5392, allocations: 316.2 kB / 0.5379 GB, free: 8.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.004e-05/0.5392, allocations: 0 / 0.5379 GB, free: 8.105 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.901e-06/0.5392, allocations: 1.406 kB / 0.5379 GB, free: 8.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.123e-05/0.5393, allocations: 59.98 kB / 0.5379 GB, free: 8.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5393, allocations: 0 / 0.5379 GB, free: 8.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.604e-05/0.5394, allocations: 65.84 kB / 0.538 GB, free: 7.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.5394, allocations: 43.06 kB / 0.538 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.5395, allocations: 5.062 kB / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.5395, allocations: 0 / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.545e-06/0.5395, allocations: 1.25 kB / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.5395, allocations: 0 / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.5395, allocations: 0.9688 kB / 0.538 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.5395, allocations: 0 / 0.538 GB, free: 7.918 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.799e-05/0.5396, allocations: 138.8 kB / 0.5382 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.607e-06/0.5397, allocations: 3.938 kB / 0.5382 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.02e-05/0.5397, allocations: 4.031 kB / 0.5382 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.5397, allocations: 4 kB / 0.5382 GB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.5397, allocations: 5.078 kB / 0.5382 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.5397, allocations: 3.984 kB / 0.5382 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.5398, allocations: 150.9 kB / 0.5383 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5398, allocations: 5.094 kB / 0.5383 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.91e-07/0.5398, allocations: 0 / 0.5383 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.5398, allocations: 7.938 kB / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.5399, allocations: 1.062 kB / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.5399, allocations: 0.9688 kB / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.5399, allocations: 0 / 0.5383 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.54, allocations: 97.8 kB / 0.5384 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.5401, allocations: 77.11 kB / 0.5385 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.5401, allocations: 6.125 kB / 0.5385 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.338e-06/0.5401, allocations: 0 / 0.5385 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.921e-05/0.5401, allocations: 5.141 kB / 0.5385 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.5401, allocations: 1.125 kB / 0.5385 GB, free: 7.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.883e-05/0.5402, allocations: 75.28 kB / 0.5386 GB, free: 7.262 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5402, allocations: 4.031 kB / 0.5386 GB, free: 7.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005232/0.5407, allocations: 154 kB / 0.5387 GB, free: 7.207 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.0008534/0.5416, allocations: 383.6 kB / 0.5391 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.5417, allocations: 65.42 kB / 0.5392 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5417, allocations: 0 / 0.5392 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.5e-05/0.5417, allocations: 55.09 kB / 0.5392 GB, free: 6.867 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.5419, allocations: 1.312 kB / 0.5392 GB, free: 6.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002146/0.5421, allocations: 83.84 kB / 0.5393 GB, free: 6.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.5424, allocations: 0.6711 MB / 0.54 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.5424, allocations: 4.125 kB / 0.54 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.229e-05/0.5424, allocations: 8.656 kB / 0.54 GB, free: 6.059 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.5424, allocations: 0 / 0.54 GB, free: 6.059 MB / 398.1 MB Notification: Performance of Templates: time 0.009029/0.5514, allocations: 4.604 MB / 0.5445 GB, free: 3.461 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches