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.001997/0.001997, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.002388/0.002388, allocations: 156.9 kB / 24.27 MB, free: 172 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 1.489/1.489, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.3593/0.3593, allocations: 34.24 MB / 295.2 MB, free: 0.6641 MB / 266.7 MB " [Timeout remaining time 179] 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 1.743e-06/1.743e-06, allocations: 0 / 377.2 MB, free: 2.949 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.763e-05/3.937e-05, allocations: 2.312 kB / 377.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00165/0.001689, allocations: 475.4 kB / 377.6 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.005881, allocations: 2.299 MB / 379.9 MB, free: 164 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.196e-05/0.005903, allocations: 3.938 kB / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.001e-05/0.005913, allocations: 0 / 379.9 MB, free: 160 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.005917, allocations: 0 / 379.9 MB, free: 160 kB / 346.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.003326/0.009243, allocations: 1.101 MB / 381 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.54e-05/0.009299, allocations: 7.984 kB / 381 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.162e-05/0.009341, allocations: 8 kB / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.661e-05/0.009367, allocations: 0 / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.227e-05/0.009389, allocations: 0 / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.003e-06/0.009396, allocations: 0 / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.01139, allocations: 0.9753 MB / 382 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.168e-05/0.0114, allocations: 3.984 kB / 382 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.639e-05/0.01143, allocations: 7.938 kB / 382 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008119/0.01224, allocations: 0.5299 MB / 382.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.01224, allocations: 0 / 382.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.01225, allocations: 4 kB / 382.6 MB, free: 13.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.01225, allocations: 0 / 382.6 MB, free: 13.51 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.0005761/0.01283, allocations: 367.2 kB / 382.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.01287, allocations: 12.03 kB / 382.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/0.01293, allocations: 0.9375 kB / 382.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.01306, allocations: 105.8 kB / 383 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.01307, allocations: 384 / 383 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.01308, allocations: 4.375 kB / 383.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.01321, allocations: 55.91 kB / 383.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.01322, allocations: 4.188 kB / 383.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.01323, allocations: 384 / 383.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.01324, allocations: 15.88 kB / 383.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.289e-05/0.01328, allocations: 25.7 kB / 383.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/0.01342, allocations: 97.33 kB / 383.2 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.254e-05/0.0135, allocations: 48.27 kB / 383.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.276e-05/0.01355, allocations: 34.66 kB / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.467e-06/0.01356, allocations: 0 / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.347e-05/0.01363, allocations: 60.2 kB / 383.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.12e-07/0.01363, allocations: 0 / 383.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002861/0.01392, allocations: 122.8 kB / 383.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.01401, allocations: 89.17 kB / 383.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.132e-05/0.01408, allocations: 89.86 kB / 383.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.01411, allocations: 25.7 kB / 383.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.01416, allocations: 80.14 kB / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.01418, allocations: 0 / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/0.01421, allocations: 13.72 kB / 383.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.01441, allocations: 314.8 kB / 384.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.01444, allocations: 29.69 kB / 384.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.848e-05/0.01447, allocations: 33.64 kB / 384.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.086e-05/0.01454, allocations: 60.27 kB / 384.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01454, allocations: 4.062 kB / 384.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001077/0.01465, allocations: 89.11 kB / 384.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.149e-05/0.01469, allocations: 33.69 kB / 384.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.0147, allocations: 0 / 384.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.01471, allocations: 0 / 384.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.01471, allocations: 0 / 384.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.01472, allocations: 3.938 kB / 384.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.799e-05/0.01474, allocations: 4 kB / 384.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.01475, allocations: 0 / 384.4 MB, free: 11.45 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 0.0001346/0.01488, allocations: 135.5 kB / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.404e-05/0.0149, allocations: 11.92 kB / 384.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.01491, allocations: 6.984 kB / 384.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.01491, allocations: 0 / 384.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.01492, allocations: 0 / 384.5 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.01492, allocations: 3.938 kB / 384.5 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.01503, allocations: 97.33 kB / 384.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.01503, allocations: 0 / 384.6 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.01503, allocations: 3.938 kB / 384.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.01503, allocations: 0 / 384.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.01504, allocations: 0 / 384.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.01504, allocations: 0 / 384.6 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.01504, allocations: 8 kB / 384.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001516/0.01519, allocations: 120.5 kB / 384.7 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.158e-05/0.0152, allocations: 3.984 kB / 384.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.01522, allocations: 0 / 384.7 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.472e-05/0.01523, allocations: 8 kB / 384.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.217e-05/0.01525, allocations: 7.984 kB / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.584e-06/0.01526, allocations: 0 / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.123e-05/0.01531, allocations: 83.16 kB / 384.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01531, allocations: 0 / 384.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004938/0.0158, allocations: 159.5 kB / 385 MB, free: 10.74 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.0008915/0.01669, allocations: 419.9 kB / 385.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001662/0.01686, allocations: 114.8 kB / 385.5 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01686, allocations: 0 / 385.5 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.948e-05/0.01693, allocations: 85.09 kB / 385.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.01706, allocations: 6.969 kB / 385.6 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002298/0.01729, allocations: 108 kB / 385.7 MB, free: 9.941 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.975e-05/0.01735, allocations: 55.34 kB / 385.8 MB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.699e-06/0.01735, allocations: 0 / 385.8 MB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.752e-05/0.01737, allocations: 12.5 kB / 385.8 MB, free: 9.855 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.01737, allocations: 0 / 385.8 MB, free: 9.855 MB / 362.7 MB Notification: Performance of Templates: time 0.01014/0.02751, allocations: 4.716 MB / 390.5 MB, free: 5.133 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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: 4.998283889028244]