Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.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.001523/0.001523, allocations: 112.9 kB / 19.17 MB, free: 3.891 MB / 14.72 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.00151/0.00151, allocations: 210.5 kB / 22.13 MB, free: 0.9375 MB / 14.72 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 1.477/1.477, allocations: 230.2 MB / 255.1 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2405/0.2405, allocations: 46.89 MB / 358.1 MB, free: 10.57 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002252, allocations: 83.86 kB / 0.4923 GB, free: 8.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1383, allocations: 65.99 MB / 0.5568 GB, free: 5.988 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001794/0.1401, allocations: 474.3 kB / 0.5572 GB, free: 5.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003729/0.1438, allocations: 2.43 MB / 0.5596 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.667e-05/0.1439, allocations: 0 / 0.5596 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.082e-05/0.1439, allocations: 7.938 kB / 0.5596 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.482e-06/0.1439, allocations: 0 / 0.5596 GB, free: 3.062 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.002894/0.1468, allocations: 1.148 MB / 0.5607 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.797e-05/0.1468, allocations: 0 / 0.5607 GB, free: 1.914 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.629e-05/0.1469, allocations: 4 kB / 0.5607 GB, free: 1.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.104e-05/0.1469, allocations: 7.984 kB / 0.5607 GB, free: 1.902 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.011e-05/0.1469, allocations: 4 kB / 0.5607 GB, free: 1.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-06/0.1469, allocations: 0 / 0.5607 GB, free: 1.898 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001817/0.1487, allocations: 1.034 MB / 0.5617 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.698e-06/0.1488, allocations: 0 / 0.5617 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.1488, allocations: 0 / 0.5617 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006632/0.1494, allocations: 451.1 kB / 0.5622 GB, free: 432 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1494, allocations: 0 / 0.5622 GB, free: 432 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1494, allocations: 0 / 0.5622 GB, free: 432 kB / 414.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.1495, allocations: 4 kB / 0.5622 GB, free: 428 kB / 414.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.0005507/0.15, allocations: 440.4 kB / 0.5626 GB, free: 15.93 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.15, allocations: 12.03 kB / 0.5626 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.612e-05/0.1501, allocations: 4.875 kB / 0.5626 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.1502, allocations: 168.3 kB / 0.5628 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.714e-06/0.1502, allocations: 4.312 kB / 0.5628 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.1502, allocations: 384 / 0.5628 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.1503, allocations: 34.02 kB / 0.5628 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1503, allocations: 4 kB / 0.5628 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.1504, allocations: 0 / 0.5628 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1504, allocations: 7.984 kB / 0.5628 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.708e-05/0.1504, allocations: 0 / 0.5628 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.1505, allocations: 153.7 kB / 0.563 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.835e-05/0.1506, allocations: 18.52 kB / 0.563 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.744e-05/0.1506, allocations: 4.859 kB / 0.563 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-06/0.1506, allocations: 4.094 kB / 0.563 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.569e-05/0.1507, allocations: 60.2 kB / 0.5631 GB, free: 15.35 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1507, allocations: 4 kB / 0.5631 GB, free: 15.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001929/0.1509, allocations: 67.39 kB / 0.5631 GB, free: 15.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.1509, allocations: 77.11 kB / 0.5632 GB, free: 15.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.63e-05/0.151, allocations: 93.81 kB / 0.5633 GB, free: 15.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.151, allocations: 29.64 kB / 0.5633 GB, free: 15.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.513e-05/0.151, allocations: 80.14 kB / 0.5634 GB, free: 14.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.1511, allocations: 7.938 kB / 0.5634 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.1511, allocations: 13.72 kB / 0.5634 GB, free: 14.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1512, allocations: 315 kB / 0.5637 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.898e-06/0.1512, allocations: 0 / 0.5637 GB, free: 14.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.1512, allocations: 4 kB / 0.5637 GB, free: 14.61 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.995e-05/0.1513, allocations: 64.25 kB / 0.5638 GB, free: 14.53 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1513, allocations: 0 / 0.5638 GB, free: 14.53 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.714e-05/0.1514, allocations: 55.41 kB / 0.5638 GB, free: 14.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/0.1514, allocations: 41.64 kB / 0.5639 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1514, allocations: 0 / 0.5639 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1514, allocations: 4.094 kB / 0.5639 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.464e-06/0.1514, allocations: 3.938 kB / 0.5639 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1514, allocations: 0 / 0.5639 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.625e-05/0.1515, allocations: 3.984 kB / 0.5639 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.1515, allocations: 4 kB / 0.5639 GB, free: 14.4 MB / 430.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 9.455e-05/0.1516, allocations: 131.5 kB / 0.564 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-06/0.1516, allocations: 7.875 kB / 0.564 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.073e-05/0.1516, allocations: 7.125 kB / 0.564 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1516, allocations: 0 / 0.564 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1516, allocations: 4 kB / 0.564 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1516, allocations: 0 / 0.564 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.1517, allocations: 145.7 kB / 0.5642 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.1517, allocations: 0 / 0.5642 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1517, allocations: 0 / 0.5642 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.1517, allocations: 11.88 kB / 0.5642 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.1517, allocations: 0 / 0.5642 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1517, allocations: 0 / 0.5642 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1517, allocations: 0 / 0.5642 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.1518, allocations: 94.83 kB / 0.5643 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.1519, allocations: 77.11 kB / 0.5643 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.1519, allocations: 7.875 kB / 0.5644 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.323e-05/0.1519, allocations: 8 kB / 0.5644 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.08e-05/0.1519, allocations: 0 / 0.5644 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.1519, allocations: 4 kB / 0.5644 GB, free: 13.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.989e-05/0.152, allocations: 75.28 kB / 0.5644 GB, free: 13.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.152, allocations: 0 / 0.5644 GB, free: 13.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004482/0.1524, allocations: 155.6 kB / 0.5646 GB, free: 13.58 MB / 430.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.0007788/0.1532, allocations: 385.1 kB / 0.565 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.1533, allocations: 63.39 kB / 0.565 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1533, allocations: 0 / 0.565 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.998e-05/0.1533, allocations: 55.41 kB / 0.5651 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.1535, allocations: 4.984 kB / 0.5651 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/0.1537, allocations: 106.8 kB / 0.5652 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.154, allocations: 0.6806 MB / 0.5658 GB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.373e-05/0.154, allocations: 7.438 kB / 0.5658 GB, free: 12.2 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.154, allocations: 4.125 kB / 0.5658 GB, free: 12.2 MB / 430.1 MB Notification: Performance of Templates: time 0.007942/0.1619, allocations: 3.924 MB / 0.5697 GB, free: 8.262 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.531046158866957]