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.001138/0.001138, allocations: 116.9 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.001351/0.001351, allocations: 200.6 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.332/1.332, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.12 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 76.59 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1103, allocations: 62.45 MB / 481.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001595/0.112, allocations: 465.4 kB / 481.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003164/0.1151, allocations: 2.411 MB / 484.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.899e-05/0.1152, allocations: 0 / 484.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.41e-05/0.1152, allocations: 0 / 484.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.83e-06/0.1152, allocations: 7.938 kB / 484.3 MB, free: 1.641 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.002362/0.1176, allocations: 1.137 MB / 485.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.217e-05/0.1176, allocations: 4 kB / 485.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.393e-05/0.1177, allocations: 7.875 kB / 485.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.326e-05/0.1177, allocations: 0 / 485.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.777e-05/0.1177, allocations: 0 / 485.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.463e-06/0.1177, allocations: 4 kB / 485.5 MB, free: 500 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.1192, allocations: 1.042 MB / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.1192, allocations: 0 / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.808e-05/0.1192, allocations: 3.984 kB / 486.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005328/0.1197, allocations: 447.3 kB / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1198, allocations: 0 / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1198, allocations: 0 / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1198, allocations: 0 / 487 MB, free: 15 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.0003815/0.1202, allocations: 441.2 kB / 487.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.1202, allocations: 8.031 kB / 487.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.1202, allocations: 0.9375 kB / 487.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.746e-05/0.1203, allocations: 168.3 kB / 487.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1203, allocations: 8.375 kB / 487.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.739e-06/0.1204, allocations: 384 / 487.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.037e-05/0.1204, allocations: 34 kB / 487.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.1205, allocations: 4 kB / 487.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.1205, allocations: 4 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.1205, allocations: 0 / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.707e-05/0.1205, allocations: 7.938 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001173/0.1206, allocations: 145.7 kB / 487.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.558e-05/0.1207, allocations: 18.61 kB / 487.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.332e-05/0.1207, allocations: 8.859 kB / 487.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.1207, allocations: 0 / 487.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.1207, allocations: 64.2 kB / 487.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.757e-06/0.1208, allocations: 8 kB / 487.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001433/0.1209, allocations: 63.33 kB / 487.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.121, allocations: 81.11 kB / 488 MB, free: 13.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.165e-05/0.121, allocations: 89.86 kB / 488.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.121, allocations: 25.7 kB / 488.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.1211, allocations: 84.14 kB / 488.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.1211, allocations: 0 / 488.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.1211, allocations: 13.72 kB / 488.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1212, allocations: 315 kB / 488.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.1212, allocations: 0 / 488.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.1212, allocations: 0 / 488.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.04e-05/0.1213, allocations: 64.25 kB / 488.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.1213, allocations: 0 / 488.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.234e-05/0.1214, allocations: 67.34 kB / 488.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.1214, allocations: 33.64 kB / 488.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.1214, allocations: 3.938 kB / 488.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.1214, allocations: 4.094 kB / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.1215, allocations: 4 kB / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.1215, allocations: 3.984 kB / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.349e-05/0.1215, allocations: 0 / 488.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.1215, allocations: 0 / 488.7 MB, free: 13 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.766e-05/0.1216, allocations: 139.5 kB / 488.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.1216, allocations: 3.938 kB / 488.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.773e-06/0.1216, allocations: 3.125 kB / 488.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1216, allocations: 0 / 488.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.1216, allocations: 0 / 488.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1216, allocations: 4 kB / 488.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.221e-05/0.1217, allocations: 153.7 kB / 489 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1217, allocations: 0 / 489 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1217, allocations: 0 / 489 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1217, allocations: 3.938 kB / 489 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.1217, allocations: 0 / 489 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1218, allocations: 0 / 489 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1218, allocations: 4 kB / 489 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.98e-05/0.1219, allocations: 94.77 kB / 489.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.683e-05/0.1219, allocations: 84.95 kB / 489.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/0.1219, allocations: 7.938 kB / 489.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.337e-06/0.1219, allocations: 4 kB / 489.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.215e-05/0.122, allocations: 0 / 489.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.122, allocations: 0 / 489.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.658e-05/0.122, allocations: 75.28 kB / 489.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.122, allocations: 0 / 489.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003992/0.1224, allocations: 152 kB / 489.4 MB, free: 12.18 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.0006674/0.1231, allocations: 396.7 kB / 489.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.461e-05/0.1232, allocations: 67.33 kB / 489.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1232, allocations: 0 / 489.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.859e-05/0.1232, allocations: 55.41 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.0001206/0.1234, allocations: 2.5 kB / 489.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001622/0.1235, allocations: 80.94 kB / 490 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.1237, allocations: 0.6729 MB / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.1238, allocations: 0 / 490.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/0.1238, allocations: 11.44 kB / 490.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1238, allocations: 4.125 kB / 490.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of Templates: time 0.007401/0.1312, allocations: 4.595 MB / 495.3 MB, free: 6.219 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 -s gbode -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