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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001022/0.001022, allocations: 91.5 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009852/0.0009852, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9772/0.9772, allocations: 177 MB / 204.8 MB, free: 5.199 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2674/0.2674, allocations: 34.86 MB / 296.3 MB, free: 496 kB / 266.7 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.785e-06/2.785e-06, allocations: 4 kB / 378.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.702e-05/2.981e-05, allocations: 3.016 kB / 378.7 MB, free: 2.117 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001336/0.001365, allocations: 495.6 kB / 379.2 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002896/0.004261, allocations: 2.353 MB / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.287e-05/0.004284, allocations: 0 / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.647e-05/0.0043, allocations: 0 / 381.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.004307, allocations: 4 kB / 381.6 MB, free: 15.25 MB / 362.7 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.002206/0.006512, allocations: 1.132 MB / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.763e-05/0.00656, allocations: 0 / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.043e-05/0.006591, allocations: 0 / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.467e-05/0.006615, allocations: 4 kB / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.025e-05/0.006635, allocations: 0 / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.865e-06/0.006643, allocations: 0 / 382.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.00802, allocations: 0.9987 MB / 383.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.777e-06/0.008029, allocations: 3.938 kB / 383.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.993e-05/0.008049, allocations: 4 kB / 383.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006343/0.008683, allocations: 0.53 MB / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.008686, allocations: 4 kB / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.008688, allocations: 0 / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.008693, allocations: 3.938 kB / 384.2 MB, free: 12.57 MB / 362.7 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.0003935/0.009086, allocations: 469.2 kB / 384.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.009124, allocations: 8.031 kB / 384.7 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.00916, allocations: 4.938 kB / 384.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.013e-05/0.00922, allocations: 108.6 kB / 384.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.009232, allocations: 4.312 kB / 384.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.009242, allocations: 384 / 384.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.66e-05/0.009329, allocations: 55.97 kB / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.009338, allocations: 192 / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.009347, allocations: 384 / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.009356, allocations: 3.938 kB / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.024e-05/0.009376, allocations: 33.69 kB / 384.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.249e-05/0.009468, allocations: 108.6 kB / 385 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.909e-05/0.009517, allocations: 60.73 kB / 385.1 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.263e-05/0.00954, allocations: 33.39 kB / 385.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-06/0.009544, allocations: 0 / 385.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.009583, allocations: 67.14 kB / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.81e-07/0.009584, allocations: 0 / 385.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000173/0.009757, allocations: 114.8 kB / 385.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002758/0.01003, allocations: 81.05 kB / 385.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.34e-05/0.01008, allocations: 142.2 kB / 385.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.01009, allocations: 25.7 kB / 385.5 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.999e-05/0.01012, allocations: 131 kB / 385.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.01013, allocations: 8.344 kB / 385.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/0.01016, allocations: 19.38 kB / 385.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.01027, allocations: 496.1 kB / 386.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.255e-05/0.01029, allocations: 29.7 kB / 386.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.306e-05/0.01031, allocations: 25.7 kB / 386.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.754e-05/0.01036, allocations: 67.09 kB / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.01036, allocations: 0 / 386.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.767e-05/0.01044, allocations: 97.05 kB / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.01046, allocations: 29.7 kB / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.01047, allocations: 4.094 kB / 386.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.01048, allocations: 7.938 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.897e-06/0.01049, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.01049, allocations: 3.938 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.337e-05/0.01051, allocations: 3.938 kB / 386.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.01051, allocations: 0 / 386.4 MB, free: 10.07 MB / 362.7 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.032e-05/0.01058, allocations: 186.3 kB / 386.6 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-06/0.01059, allocations: 0 / 386.6 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.096e-05/0.0106, allocations: 3 kB / 386.6 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.0106, allocations: 0 / 386.6 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.01061, allocations: 8 kB / 386.6 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01061, allocations: 3.938 kB / 386.6 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.635e-05/0.01067, allocations: 104.6 kB / 386.7 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.01067, allocations: 0 / 386.7 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-06/0.01067, allocations: 3.984 kB / 386.7 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.01067, allocations: 0 / 386.7 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.01068, allocations: 4 kB / 386.7 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.01068, allocations: 0 / 386.7 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01068, allocations: 0 / 386.7 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.334e-05/0.01078, allocations: 131.8 kB / 386.9 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-06/0.01078, allocations: 4.031 kB / 386.9 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.01079, allocations: 7.938 kB / 386.9 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.0108, allocations: 0 / 386.9 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.419e-05/0.01082, allocations: 7.984 kB / 386.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.01082, allocations: 0 / 386.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.973e-05/0.01085, allocations: 123.1 kB / 387 MB, free: 9.406 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01085, allocations: 0 / 387 MB, free: 9.406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000406/0.01125, allocations: 159.5 kB / 387.2 MB, free: 9.25 MB / 362.7 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.0006731/0.01193, allocations: 420.3 kB / 387.6 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001129/0.01204, allocations: 126.5 kB / 387.7 MB, free: 8.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01204, allocations: 0 / 387.7 MB, free: 8.684 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.58e-05/0.01208, allocations: 92.86 kB / 387.8 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.0122, allocations: 0 / 387.8 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001847/0.01238, allocations: 117.6 kB / 387.9 MB, free: 8.418 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.896e-05/0.01241, allocations: 59.23 kB / 388 MB, free: 8.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.14e-06/0.01242, allocations: 0 / 388 MB, free: 8.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.01243, allocations: 12.5 kB / 388 MB, free: 8.328 MB / 362.7 MB Notification: Performance of SimCode: time 6.02e-07/0.01243, allocations: 0 / 388 MB, free: 8.328 MB / 362.7 MB Notification: Performance of Templates: time 0.007306/0.01974, allocations: 4.722 MB / 392.7 MB, free: 3.602 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2402513823471963]