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.001745/0.001744, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001724/0.001724, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.217/2.217, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3041/0.3041, allocations: 46.11 MB / 344.4 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 75.88 kB / 417.7 MB, free: 7.469 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2252, allocations: 62.43 MB / 480.1 MB, free: 8.984 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002318/0.2276, allocations: 0.5371 MB / 480.7 MB, free: 8.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005576/0.2332, allocations: 2.388 MB / 483.1 MB, free: 6.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.861e-05/0.2333, allocations: 3.938 kB / 483.1 MB, free: 6.031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.815e-05/0.2334, allocations: 3.938 kB / 483.1 MB, free: 6.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.764e-06/0.2334, allocations: 0 / 483.1 MB, free: 6.027 MB / 398.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.005408/0.2388, allocations: 1.075 MB / 484.1 MB, free: 4.953 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.28e-05/0.2389, allocations: 0 / 484.1 MB, free: 4.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.832e-05/0.239, allocations: 0 / 484.1 MB, free: 4.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.914e-05/0.239, allocations: 4 kB / 484.1 MB, free: 4.949 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.385e-05/0.2391, allocations: 3.938 kB / 484.1 MB, free: 4.945 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.375e-06/0.2391, allocations: 0 / 484.1 MB, free: 4.945 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002735/0.2418, allocations: 1.011 MB / 485.2 MB, free: 3.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.2419, allocations: 0 / 485.2 MB, free: 3.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.23e-05/0.242, allocations: 0 / 485.2 MB, free: 3.934 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009571/0.2429, allocations: 291.5 kB / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.243, allocations: 0 / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.243, allocations: 0 / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.243, allocations: 0 / 485.4 MB, free: 3.648 MB / 398.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.0008006/0.2438, allocations: 441.4 kB / 485.9 MB, free: 3.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.308e-05/0.2439, allocations: 8.031 kB / 485.9 MB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.639e-05/0.244, allocations: 0.9375 kB / 485.9 MB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.2442, allocations: 172.3 kB / 486.1 MB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.2442, allocations: 384 / 486.1 MB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.2442, allocations: 4.375 kB / 486.1 MB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.2444, allocations: 34.02 kB / 486.1 MB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.2444, allocations: 3.984 kB / 486.1 MB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2444, allocations: 0 / 486.1 MB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.2444, allocations: 0 / 486.1 MB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.753e-05/0.2445, allocations: 4 kB / 486.1 MB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002247/0.2447, allocations: 149.6 kB / 486.2 MB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.972e-05/0.2448, allocations: 18.61 kB / 486.3 MB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.489e-05/0.2448, allocations: 4.859 kB / 486.3 MB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.2448, allocations: 0 / 486.3 MB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.14e-05/0.2449, allocations: 68.19 kB / 486.3 MB, free: 2.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.2449, allocations: 3.938 kB / 486.3 MB, free: 2.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002767/0.2452, allocations: 67.39 kB / 486.4 MB, free: 2.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.732e-05/0.2453, allocations: 81.23 kB / 486.5 MB, free: 2.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.829e-05/0.2454, allocations: 93.86 kB / 486.6 MB, free: 2.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.2454, allocations: 25.7 kB / 486.6 MB, free: 2.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.2455, allocations: 80.14 kB / 486.7 MB, free: 2.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.2455, allocations: 0 / 486.7 MB, free: 2.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.2455, allocations: 17.7 kB / 486.7 MB, free: 2.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.2457, allocations: 314.8 kB / 487 MB, free: 1.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.2457, allocations: 0 / 487 MB, free: 1.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.418e-05/0.2458, allocations: 4 kB / 487 MB, free: 1.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.306e-05/0.2459, allocations: 60.27 kB / 487.1 MB, free: 1.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2459, allocations: 0 / 487.1 MB, free: 1.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002316/0.2502, allocations: 71.33 kB / 487.1 MB, free: 1.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.809e-05/0.2503, allocations: 36.45 kB / 487.2 MB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2503, allocations: 0 / 487.2 MB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.2503, allocations: 3.984 kB / 487.2 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-06/0.2503, allocations: 0 / 487.2 MB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.2504, allocations: 4 kB / 487.2 MB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.913e-05/0.2504, allocations: 4.094 kB / 487.2 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.2504, allocations: 0 / 487.2 MB, free: 1.641 MB / 398.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 0.0001291/0.2506, allocations: 135.5 kB / 487.3 MB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/0.2506, allocations: 3.938 kB / 487.3 MB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.663e-05/0.2506, allocations: 7.109 kB / 487.3 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.2506, allocations: 0 / 487.3 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2506, allocations: 0 / 487.3 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2506, allocations: 0 / 487.3 MB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000161/0.2508, allocations: 145.7 kB / 487.5 MB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2508, allocations: 4 kB / 487.5 MB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.2508, allocations: 3.938 kB / 487.5 MB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.2508, allocations: 3.938 kB / 487.5 MB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.2509, allocations: 4 kB / 487.5 MB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.2509, allocations: 3.984 kB / 487.5 MB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2509, allocations: 0 / 487.5 MB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.251, allocations: 94.78 kB / 487.6 MB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.959e-05/0.2511, allocations: 81.09 kB / 487.7 MB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.2512, allocations: 11.91 kB / 487.7 MB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.234e-05/0.2512, allocations: 4 kB / 487.7 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.752e-05/0.2512, allocations: 0 / 487.7 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.2512, allocations: 0 / 487.7 MB, free: 1.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.848e-05/0.2513, allocations: 75.28 kB / 487.7 MB, free: 0.9688 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2513, allocations: 0 / 487.7 MB, free: 0.9688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008583/0.2521, allocations: 156 kB / 487.9 MB, free: 0.8164 MB / 398.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.001254/0.2534, allocations: 376.9 kB / 488.3 MB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001573/0.2536, allocations: 59.41 kB / 488.3 MB, free: 384 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.2536, allocations: 0 / 488.3 MB, free: 384 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.617e-05/0.2536, allocations: 59.41 kB / 488.4 MB, free: 312 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.2538, allocations: 4 kB / 488.4 MB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.2582, allocations: 110.7 kB / 488.5 MB, free: 164 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.2587, allocations: 0.669 MB / 489.2 MB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.039e-05/0.2587, allocations: 7.438 kB / 489.2 MB, free: 15.46 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2587, allocations: 0 / 489.2 MB, free: 15.46 MB / 414.1 MB Notification: Performance of Templates: time 0.01786/0.2766, allocations: 3.92 MB / 493.1 MB, free: 11.53 MB / 414.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