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.001153/0.001153, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.216/0.216, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 71.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1122, allocations: 62.43 MB / 481.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001524/0.1137, allocations: 474.9 kB / 481.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003054/0.1168, allocations: 2.418 MB / 484.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.857e-05/0.1168, allocations: 0 / 484.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.1169, allocations: 0 / 484.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.1169, allocations: 3.938 kB / 484.3 MB, free: 1.629 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.002405/0.1193, allocations: 1.14 MB / 485.5 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.031e-05/0.1193, allocations: 0 / 485.5 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.59e-05/0.1194, allocations: 8 kB / 485.5 MB, free: 492 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.421e-05/0.1194, allocations: 3.984 kB / 485.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.758e-05/0.1194, allocations: 0 / 485.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-06/0.1194, allocations: 0 / 485.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.1209, allocations: 1.046 MB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.1209, allocations: 0 / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.883e-05/0.1209, allocations: 4 kB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005318/0.1214, allocations: 443.3 kB / 487 MB, free: 14.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1215, allocations: 4 kB / 487 MB, free: 14.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1215, allocations: 4 kB / 487 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1215, allocations: 0 / 487 MB, free: 14.98 MB / 366.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.0003909/0.1219, allocations: 437.2 kB / 487.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.1219, allocations: 12.03 kB / 487.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.122, allocations: 0.9375 kB / 487.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.341e-05/0.122, allocations: 168.3 kB / 487.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.1221, allocations: 384 / 487.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.1221, allocations: 4.312 kB / 487.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.632e-05/0.1222, allocations: 34.02 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1222, allocations: 4 kB / 487.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.1222, allocations: 0 / 487.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1222, allocations: 0 / 487.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.748e-05/0.1222, allocations: 4 kB / 487.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.1223, allocations: 145.7 kB / 487.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.743e-05/0.1224, allocations: 18.56 kB / 487.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.1224, allocations: 12.89 kB / 487.8 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.1224, allocations: 0 / 487.8 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.1225, allocations: 68.14 kB / 487.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1225, allocations: 0 / 487.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.1226, allocations: 67.39 kB / 487.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.1227, allocations: 77.11 kB / 488 MB, free: 13.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.787e-05/0.1227, allocations: 89.86 kB / 488.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.1228, allocations: 29.7 kB / 488.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.366e-05/0.1228, allocations: 80.14 kB / 488.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.1228, allocations: 4.125 kB / 488.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.1228, allocations: 9.719 kB / 488.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1229, allocations: 314.8 kB / 488.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-06/0.123, allocations: 3.938 kB / 488.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-06/0.123, allocations: 0 / 488.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.524e-05/0.123, allocations: 68.25 kB / 488.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.123, allocations: 0 / 488.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.16e-05/0.1231, allocations: 59.47 kB / 488.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.1231, allocations: 37.67 kB / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.1232, allocations: 0 / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.1232, allocations: 0 / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.1232, allocations: 0 / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1232, allocations: 4 kB / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.326e-05/0.1232, allocations: 7.938 kB / 488.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.337e-06/0.1232, allocations: 3.984 kB / 488.7 MB, free: 12.98 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 7.633e-05/0.1233, allocations: 139.5 kB / 488.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.708e-06/0.1233, allocations: 7.938 kB / 488.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.324e-06/0.1233, allocations: 7.125 kB / 488.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.1233, allocations: 0 / 488.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1233, allocations: 0 / 488.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1233, allocations: 0 / 488.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.286e-05/0.1234, allocations: 145.7 kB / 489 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1234, allocations: 4 kB / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1234, allocations: 0 / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1235, allocations: 3.938 kB / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-06/0.1235, allocations: 0 / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1235, allocations: 0 / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1235, allocations: 0 / 489 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.935e-05/0.1236, allocations: 98.81 kB / 489.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.1236, allocations: 84.95 kB / 489.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.1236, allocations: 3.938 kB / 489.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.618e-06/0.1236, allocations: 4 kB / 489.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.158e-05/0.1237, allocations: 0 / 489.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1237, allocations: 0 / 489.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.862e-05/0.1237, allocations: 83.25 kB / 489.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1237, allocations: 0 / 489.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004184/0.1241, allocations: 156 kB / 489.4 MB, free: 12.16 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.0006133/0.1248, allocations: 377.3 kB / 489.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.705e-05/0.1248, allocations: 59.41 kB / 489.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1249, allocations: 3.938 kB / 489.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.059e-05/0.1249, allocations: 59.39 kB / 489.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.125, allocations: 6.391 kB / 489.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001456/0.1252, allocations: 76.94 kB / 490 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.1254, allocations: 0.673 MB / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.468e-06/0.1254, allocations: 0 / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.636e-06/0.1254, allocations: 7.438 kB / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1254, allocations: 0 / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of Templates: time 0.007056/0.1325, allocations: 4.61 MB / 495.3 MB, free: 6.211 MB / 366.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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches