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.0009697/0.0009736, allocations: 96.19 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001152, allocations: 206.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.19 MB / 345.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002745, allocations: 4 kB / 420.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 63.56 MB / 483.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0005119/0.1136, allocations: 197.3 kB / 483.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003362/0.117, allocations: 2.429 MB / 486.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.145e-05/0.117, allocations: 0 / 486.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.278e-05/0.117, allocations: 3.938 kB / 486.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.378e-06/0.117, allocations: 3.938 kB / 486.3 MB, free: 1.531 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.002423/0.1194, allocations: 1.047 MB / 487.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.796e-05/0.1195, allocations: 0 / 487.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.119e-05/0.1195, allocations: 0 / 487.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.326e-05/0.1195, allocations: 0 / 487.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.81e-05/0.1196, allocations: 0 / 487.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.1196, allocations: 4 kB / 487.4 MB, free: 492 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.1212, allocations: 1.007 MB / 488.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.1212, allocations: 3.984 kB / 488.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.999e-05/0.1212, allocations: 25.7 kB / 488.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004173/0.1216, allocations: 279.5 kB / 488.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1217, allocations: 0 / 488.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1217, allocations: 0 / 488.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.1217, allocations: 0 / 488.7 MB, free: 15.16 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.0004158/0.1221, allocations: 441.5 kB / 489.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1221, allocations: 8.875 kB / 489.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.1222, allocations: 0.9375 kB / 489.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.687e-05/0.1223, allocations: 164.3 kB / 489.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1223, allocations: 384 / 489.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.1223, allocations: 4.375 kB / 489.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.251e-05/0.1224, allocations: 41.94 kB / 489.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-06/0.1224, allocations: 0 / 489.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.1224, allocations: 4 kB / 489.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1224, allocations: 4 kB / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.543e-05/0.1224, allocations: 4 kB / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001215/0.1226, allocations: 141.7 kB / 489.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.625e-05/0.1226, allocations: 18.61 kB / 489.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.372e-05/0.1226, allocations: 4.859 kB / 489.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-06/0.1226, allocations: 0 / 489.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.1227, allocations: 72.12 kB / 489.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1227, allocations: 4 kB / 489.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.1229, allocations: 59.47 kB / 489.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.1229, allocations: 88.98 kB / 489.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.274e-05/0.123, allocations: 89.86 kB / 489.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.123, allocations: 25.7 kB / 489.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.399e-05/0.123, allocations: 84.12 kB / 489.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.363e-05/0.123, allocations: 0 / 489.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.1231, allocations: 9.719 kB / 490 MB, free: 13.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.1232, allocations: 315 kB / 490.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.388e-06/0.1232, allocations: 8 kB / 490.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.853e-06/0.1232, allocations: 0 / 490.3 MB, free: 13.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.01e-05/0.1232, allocations: 64.2 kB / 490.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1233, allocations: 0 / 490.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.404e-05/0.1233, allocations: 59.39 kB / 490.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.1234, allocations: 44.3 kB / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1234, allocations: 0 / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.1234, allocations: 0 / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.1234, allocations: 4.094 kB / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1234, allocations: 0 / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.392e-05/0.1234, allocations: 0 / 490.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.1235, allocations: 4 kB / 490.4 MB, free: 13.16 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.869e-05/0.1235, allocations: 135.5 kB / 490.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-06/0.1236, allocations: 3.938 kB / 490.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.969e-06/0.1236, allocations: 11.11 kB / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1236, allocations: 0 / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1236, allocations: 0 / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1236, allocations: 7.938 kB / 490.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.041e-05/0.1237, allocations: 141.7 kB / 490.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1237, allocations: 0 / 490.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.1237, allocations: 0 / 490.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.1237, allocations: 11.92 kB / 490.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.1237, allocations: 3.984 kB / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.1237, allocations: 0 / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1237, allocations: 0 / 490.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.815e-05/0.1238, allocations: 90.84 kB / 490.8 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/0.1239, allocations: 85 kB / 490.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.1239, allocations: 3.938 kB / 490.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.1239, allocations: 0 / 490.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.1239, allocations: 11.94 kB / 490.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.1239, allocations: 0 / 490.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.297e-05/0.124, allocations: 75.28 kB / 491 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.124, allocations: 0 / 491 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004605/0.1244, allocations: 156 kB / 491.2 MB, free: 12.34 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.0006825/0.1251, allocations: 377.2 kB / 491.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.374e-05/0.1252, allocations: 63.41 kB / 491.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1252, allocations: 0 / 491.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.267e-05/0.1253, allocations: 63.39 kB / 491.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.1254, allocations: 0 / 491.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001676/0.1256, allocations: 100.5 kB / 491.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.1258, allocations: 0.6692 MB / 492.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.053e-05/0.1258, allocations: 7.438 kB / 492.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1258, allocations: 0 / 492.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of Templates: time 0.006409/0.1322, allocations: 3.916 MB / 496.3 MB, free: 7.059 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches