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.001169/0.001169, allocations: 111 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001408, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.9 MB, free: 8.871 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2252/0.2252, allocations: 46.11 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 71.81 kB / 417.5 MB, free: 20.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 62.45 MB / 479.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001763/0.1076, allocations: 0.5255 MB / 480.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.111, allocations: 2.481 MB / 482.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.13e-05/0.111, allocations: 0 / 482.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.291e-05/0.1111, allocations: 0 / 482.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1111, allocations: 0 / 482.9 MB, free: 2.668 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.002453/0.1135, allocations: 1.059 MB / 484 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.265e-05/0.1136, allocations: 7.922 kB / 484 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.132e-05/0.1136, allocations: 0 / 484 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.606e-05/0.1136, allocations: 4 kB / 484 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.818e-05/0.1137, allocations: 0 / 484 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.1137, allocations: 0 / 484 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.1152, allocations: 1.003 MB / 485 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.1153, allocations: 0 / 485 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.764e-05/0.1153, allocations: 0 / 485 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.1157, allocations: 283.5 kB / 485.3 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1158, allocations: 4 kB / 485.3 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1158, allocations: 0 / 485.3 MB, free: 320 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1158, allocations: 0 / 485.3 MB, free: 320 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.0004461/0.1162, allocations: 433.5 kB / 485.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1163, allocations: 16.86 kB / 485.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.1163, allocations: 4.938 kB / 485.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.226e-05/0.1164, allocations: 164.3 kB / 485.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.1164, allocations: 4.359 kB / 485.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.1164, allocations: 384 / 485.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.992e-05/0.1165, allocations: 37.95 kB / 485.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.621e-06/0.1165, allocations: 3.938 kB / 485.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-06/0.1166, allocations: 4 kB / 485.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1166, allocations: 0 / 485.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.675e-05/0.1166, allocations: 4 kB / 485.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001211/0.1167, allocations: 149.7 kB / 486.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.49e-05/0.1168, allocations: 14.58 kB / 486.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.1168, allocations: 8.953 kB / 486.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.1168, allocations: 0 / 486.1 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.1168, allocations: 72.14 kB / 486.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1168, allocations: 0 / 486.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001692/0.117, allocations: 67.39 kB / 486.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.1171, allocations: 77.11 kB / 486.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.52e-05/0.1171, allocations: 89.86 kB / 486.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.1171, allocations: 29.7 kB / 486.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.1172, allocations: 80.14 kB / 486.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.1172, allocations: 3.938 kB / 486.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.1172, allocations: 13.72 kB / 486.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1174, allocations: 314.8 kB / 486.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.343e-05/0.1174, allocations: 8.109 kB / 486.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-06/0.1174, allocations: 0 / 486.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.876e-05/0.1174, allocations: 64.2 kB / 486.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1174, allocations: 0 / 486.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.785e-05/0.1175, allocations: 63.41 kB / 487 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.1176, allocations: 37.62 kB / 487 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1176, allocations: 0 / 487 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1176, allocations: 0 / 487 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1176, allocations: 0 / 487 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.1176, allocations: 4.094 kB / 487 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.1176, allocations: 4 kB / 487 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1176, allocations: 0 / 487 MB, free: 14.3 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.51e-05/0.1177, allocations: 131.5 kB / 487.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.1178, allocations: 7.938 kB / 487.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.657e-06/0.1178, allocations: 3.125 kB / 487.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1178, allocations: 0 / 487.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1178, allocations: 0 / 487.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1178, allocations: 0 / 487.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.68e-05/0.1179, allocations: 157.5 kB / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1179, allocations: 4 kB / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1179, allocations: 0 / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.1179, allocations: 3.938 kB / 487.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1179, allocations: 0 / 487.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1179, allocations: 0 / 487.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1179, allocations: 0 / 487.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.118, allocations: 94.83 kB / 487.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.178e-05/0.1181, allocations: 85.05 kB / 487.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1181, allocations: 3.938 kB / 487.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.125e-05/0.1181, allocations: 4 kB / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.1181, allocations: 7.969 kB / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.1181, allocations: 0 / 487.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.194e-05/0.1182, allocations: 75.28 kB / 487.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1182, allocations: 0 / 487.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004649/0.1186, allocations: 156 kB / 487.7 MB, free: 13.48 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.0007432/0.1194, allocations: 385.4 kB / 488.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.028e-05/0.1195, allocations: 63.33 kB / 488.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1195, allocations: 8.062 kB / 488.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.468e-05/0.1195, allocations: 51.41 kB / 488.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1197, allocations: 4 kB / 488.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000171/0.1198, allocations: 104.4 kB / 488.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.1201, allocations: 0.677 MB / 489 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-06/0.1201, allocations: 7.438 kB / 489 MB, free: 12.11 MB / 366.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1201, allocations: 0 / 489 MB, free: 12.11 MB / 366.1 MB Notification: Performance of Templates: time 0.006432/0.1265, allocations: 3.904 MB / 492.9 MB, free: 8.195 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