Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001344, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2413/0.2413, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 77.91 kB / 417 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1339, allocations: 62.44 MB / 479.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001796/0.1357, allocations: 0.5214 MB / 480 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003331/0.1391, allocations: 2.388 MB / 482.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.31e-05/0.1391, allocations: 0 / 482.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.598e-05/0.1391, allocations: 3.938 kB / 482.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.1391, allocations: 0 / 482.4 MB, free: 2.691 MB / 350.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.002747/0.1419, allocations: 1.071 MB / 483.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.85e-05/0.142, allocations: 0 / 483.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.263e-05/0.142, allocations: 7.938 kB / 483.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.638e-05/0.142, allocations: 0 / 483.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.831e-05/0.1421, allocations: 3.984 kB / 483.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-06/0.1421, allocations: 3.938 kB / 483.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.1436, allocations: 1.007 MB / 484.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.756e-06/0.1436, allocations: 0 / 484.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.296e-05/0.1436, allocations: 4 kB / 484.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005829/0.1442, allocations: 447.3 kB / 484.9 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1443, allocations: 0 / 484.9 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1443, allocations: 0 / 484.9 MB, free: 160 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1443, allocations: 0 / 484.9 MB, free: 160 kB / 350.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.0004581/0.1447, allocations: 441.5 kB / 485.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1448, allocations: 8.031 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.33e-05/0.1448, allocations: 0.9375 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.959e-05/0.1449, allocations: 168.3 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.1449, allocations: 384 / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.1449, allocations: 384 / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.945e-05/0.145, allocations: 45.98 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.1451, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1451, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1451, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.113e-05/0.1451, allocations: 11.88 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000163/0.1453, allocations: 149.7 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.049e-05/0.1453, allocations: 22.66 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.675e-05/0.1453, allocations: 4.859 kB / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-06/0.1454, allocations: 3.938 kB / 485.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.1454, allocations: 60.2 kB / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.1454, allocations: 0 / 485.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000172/0.1456, allocations: 67.34 kB / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1456, allocations: 85.22 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.623e-05/0.1457, allocations: 89.86 kB / 486.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.1457, allocations: 29.7 kB / 486.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.424e-05/0.1457, allocations: 80.14 kB / 486.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.1458, allocations: 0 / 486.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.1458, allocations: 9.719 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1459, allocations: 318.8 kB / 486.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.002e-05/0.1459, allocations: 0 / 486.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.039e-06/0.1459, allocations: 4 kB / 486.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.5e-05/0.146, allocations: 60.27 kB / 486.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.146, allocations: 0 / 486.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.428e-05/0.1461, allocations: 67.33 kB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.1461, allocations: 36.3 kB / 486.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1461, allocations: 0 / 486.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1461, allocations: 0 / 486.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.1461, allocations: 0 / 486.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.1462, allocations: 4 kB / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.534e-05/0.1462, allocations: 8.094 kB / 486.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/0.1462, allocations: 0 / 486.7 MB, free: 14.15 MB / 366.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.74e-05/0.1463, allocations: 135.5 kB / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.858e-06/0.1463, allocations: 7.938 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.806e-06/0.1463, allocations: 3.125 kB / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1463, allocations: 0 / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1463, allocations: 0 / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1463, allocations: 0 / 486.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.992e-05/0.1464, allocations: 149.7 kB / 486.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1465, allocations: 4 kB / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1465, allocations: 0 / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1465, allocations: 3.938 kB / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.453e-06/0.1465, allocations: 0 / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1465, allocations: 0 / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1465, allocations: 0 / 487 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1466, allocations: 98.7 kB / 487.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.1466, allocations: 81.02 kB / 487.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.1467, allocations: 11.91 kB / 487.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.1467, allocations: 8 kB / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.263e-05/0.1467, allocations: 0 / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.1467, allocations: 4 kB / 487.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.756e-05/0.1467, allocations: 75.28 kB / 487.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1468, allocations: 0 / 487.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.1472, allocations: 156 kB / 487.4 MB, free: 13.32 MB / 366.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.0007367/0.1479, allocations: 384.5 kB / 487.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.1481, allocations: 67.34 kB / 487.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1481, allocations: 0 / 487.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.372e-05/0.1481, allocations: 59.45 kB / 487.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.1482, allocations: 4 kB / 487.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001831/0.1484, allocations: 80.94 kB / 488 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.1487, allocations: 0.669 MB / 488.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.482e-06/0.1487, allocations: 0 / 488.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.084e-05/0.1487, allocations: 7.438 kB / 488.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1487, allocations: 0 / 488.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of Templates: time 0.008147/0.1569, allocations: 4.614 MB / 493.3 MB, free: 7.363 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches