Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 101.2 kB / 16.94 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 191.4 kB / 17.86 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2031/0.2031, allocations: 43.51 MB / 314.6 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 66.09 kB / 383.4 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09705, allocations: 57.8 MB / 441.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001662/0.09876, allocations: 473.4 kB / 441.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.1015, allocations: 2.313 MB / 444 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.783e-05/0.1016, allocations: 0 / 444 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.233e-05/0.1016, allocations: 0 / 444 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.23e-06/0.1017, allocations: 0 / 444 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.1041, allocations: 1.136 MB / 445.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.886e-05/0.1042, allocations: 4 kB / 445.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.6e-05/0.1042, allocations: 4 kB / 445.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.598e-05/0.1042, allocations: 0 / 445.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.332e-05/0.1042, allocations: 0 / 445.1 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-06/0.1043, allocations: 3.938 kB / 445.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.1055, allocations: 0.9639 MB / 446.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.307e-06/0.1055, allocations: 0 / 446.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.667e-05/0.1055, allocations: 0 / 446.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004775/0.106, allocations: 427.3 kB / 446.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.106, allocations: 0 / 446.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1061, allocations: 0 / 446.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1061, allocations: 0 / 446.5 MB, free: 1.59 MB / 318.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.0003768/0.1064, allocations: 429.4 kB / 446.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1065, allocations: 15.89 kB / 446.9 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.1065, allocations: 4.844 kB / 446.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.625e-05/0.1066, allocations: 164.4 kB / 447.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-06/0.1066, allocations: 384 / 447.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.1066, allocations: 384 / 447.1 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.421e-05/0.1067, allocations: 42 kB / 447.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.1067, allocations: 0 / 447.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.1067, allocations: 7.875 kB / 447.1 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.1068, allocations: 0 / 447.1 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.1068, allocations: 8 kB / 447.1 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.812e-05/0.1069, allocations: 145.7 kB / 447.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.302e-05/0.1069, allocations: 14.58 kB / 447.3 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.7e-05/0.1069, allocations: 16.94 kB / 447.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.107, allocations: 0 / 447.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.107, allocations: 60.2 kB / 447.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.107, allocations: 0 / 447.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000157/0.1072, allocations: 67.34 kB / 447.4 MB, free: 460 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.1072, allocations: 77.11 kB / 447.5 MB, free: 364 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.511e-05/0.1072, allocations: 93.84 kB / 447.6 MB, free: 260 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.805e-06/0.1072, allocations: 25.7 kB / 447.6 MB, free: 228 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.026e-05/0.1073, allocations: 88.27 kB / 447.7 MB, free: 136 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.1073, allocations: 0 / 447.7 MB, free: 136 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.1073, allocations: 13.72 kB / 447.7 MB, free: 116 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1074, allocations: 310.8 kB / 448 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.1074, allocations: 4 kB / 448 MB, free: 15.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.27e-06/0.1075, allocations: 0 / 448 MB, free: 15.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.135e-05/0.1075, allocations: 64.2 kB / 448.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1075, allocations: 4 kB / 448.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.826e-05/0.1076, allocations: 71.39 kB / 448.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.1077, allocations: 33.64 kB / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1077, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1077, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1077, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1077, allocations: 3.984 kB / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.828e-05/0.1077, allocations: 4 kB / 448.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-06/0.1077, allocations: 0 / 448.2 MB, free: 15.59 MB / 334.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.112e-05/0.1078, allocations: 143.5 kB / 448.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.1078, allocations: 7.938 kB / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.031e-05/0.1079, allocations: 3.125 kB / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1079, allocations: 0 / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1079, allocations: 0 / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1079, allocations: 0 / 448.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.108, allocations: 145.7 kB / 448.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.108, allocations: 4 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.108, allocations: 0 / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.108, allocations: 3.938 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.108, allocations: 0 / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.108, allocations: 7.938 kB / 448.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.108, allocations: 0 / 448.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.153e-05/0.1081, allocations: 94.77 kB / 448.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.1082, allocations: 81.11 kB / 448.7 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.1082, allocations: 3.938 kB / 448.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-06/0.1082, allocations: 0 / 448.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.549e-05/0.1082, allocations: 7.984 kB / 448.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-06/0.1083, allocations: 8.031 kB / 448.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.036e-05/0.1083, allocations: 75.28 kB / 448.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1083, allocations: 0 / 448.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004622/0.1088, allocations: 140 kB / 448.9 MB, free: 14.77 MB / 334.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.0007161/0.1095, allocations: 363.3 kB / 449.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.1096, allocations: 63.34 kB / 449.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1096, allocations: 0 / 449.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.486e-05/0.1096, allocations: 59.39 kB / 449.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.1098, allocations: 6.812 kB / 449.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002018/0.11, allocations: 98.91 kB / 449.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.1103, allocations: 0.6729 MB / 450.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.1103, allocations: 7.438 kB / 450.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of SimCode: time 2.435e-06/0.1103, allocations: 0 / 450.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of Templates: time 0.006172/0.1165, allocations: 3.627 MB / 453.8 MB, free: 9.793 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches