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.001107/0.001107, allocations: 102.2 kB / 16.64 MB, free: 6.812 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.001149/0.001149, allocations: 194.5 kB / 17.56 MB, free: 5.938 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.513/1.513, allocations: 205.1 MB / 223.4 MB, free: 12.46 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.2139/0.2139, allocations: 43.51 MB / 314.3 MB, free: 0.7227 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.002416/0.002416, allocations: 72.64 kB / 382.9 MB, free: 56.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1239, allocations: 57.79 MB / 440.7 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002093/0.1261, allocations: 0.5264 MB / 441.2 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.1291, allocations: 2.305 MB / 443.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.506e-05/0.1292, allocations: 0 / 443.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.658e-05/0.1292, allocations: 0 / 443.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.1292, allocations: 0 / 443.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002491/0.1317, allocations: 1.055 MB / 444.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.235e-05/0.1318, allocations: 4 kB / 444.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.62e-05/0.1319, allocations: 0 / 444.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.181e-05/0.1319, allocations: 4 kB / 444.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.613e-05/0.1319, allocations: 3.938 kB / 444.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-06/0.1319, allocations: 3.938 kB / 444.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.1334, allocations: 0.9639 MB / 445.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.278e-05/0.1334, allocations: 0 / 445.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.342e-05/0.1335, allocations: 4 kB / 445.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005101/0.134, allocations: 267.5 kB / 445.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.134, allocations: 0 / 445.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.134, allocations: 0 / 445.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.134, allocations: 0 / 445.8 MB, free: 2.23 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.0004472/0.1345, allocations: 425.4 kB / 446.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1345, allocations: 11.89 kB / 446.2 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.95e-05/0.1346, allocations: 12.83 kB / 446.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.659e-05/0.1346, allocations: 168.3 kB / 446.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.955e-06/0.1346, allocations: 384 / 446.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.1347, allocations: 4.375 kB / 446.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.167e-05/0.1348, allocations: 34.02 kB / 446.4 MB, free: 1.492 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1348, allocations: 4 kB / 446.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.1348, allocations: 0 / 446.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1348, allocations: 0 / 446.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.689e-05/0.1348, allocations: 0 / 446.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.714e-05/0.1349, allocations: 149.7 kB / 446.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.054e-05/0.135, allocations: 22.55 kB / 446.6 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.422e-05/0.135, allocations: 4.859 kB / 446.6 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-06/0.135, allocations: 3.938 kB / 446.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.135, allocations: 68.27 kB / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.135, allocations: 0 / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001698/0.1352, allocations: 63.39 kB / 446.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.1353, allocations: 81.23 kB / 446.8 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.241e-05/0.1353, allocations: 93.8 kB / 446.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.799e-06/0.1353, allocations: 25.7 kB / 446.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.655e-05/0.1353, allocations: 80.14 kB / 447 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.1354, allocations: 0 / 447 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.1354, allocations: 17.72 kB / 447 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.591e-05/0.1355, allocations: 310.8 kB / 447.3 MB, free: 456 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.024e-05/0.1355, allocations: 0 / 447.3 MB, free: 456 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.582e-06/0.1355, allocations: 15.98 kB / 447.3 MB, free: 440 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.121e-05/0.1355, allocations: 56.27 kB / 447.4 MB, free: 368 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1355, allocations: 0 / 447.4 MB, free: 368 kB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.113e-05/0.1356, allocations: 67.34 kB / 447.5 MB, free: 288 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.1356, allocations: 38.89 kB / 447.5 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1356, allocations: 0 / 447.5 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1357, allocations: 3.984 kB / 447.5 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.603e-06/0.1357, allocations: 3.938 kB / 447.5 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.1357, allocations: 96 / 447.5 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.1357, allocations: 4 kB / 447.5 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1357, allocations: 0 / 447.5 MB, free: 232 kB / 318.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 5.502e-05/0.1358, allocations: 139.5 kB / 447.7 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-06/0.1358, allocations: 3.938 kB / 447.7 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.588e-06/0.1358, allocations: 3.125 kB / 447.7 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.91e-07/0.1358, allocations: 0 / 447.7 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1358, allocations: 0 / 447.7 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1358, allocations: 4 kB / 447.7 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.1359, allocations: 145.7 kB / 447.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1359, allocations: 4 kB / 447.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.1359, allocations: 0 / 447.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.136, allocations: 3.938 kB / 447.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.136, allocations: 3.984 kB / 447.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.136, allocations: 4 kB / 447.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.136, allocations: 0 / 447.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000114/0.1361, allocations: 90.83 kB / 447.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.1361, allocations: 93.06 kB / 448 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.1362, allocations: 7.938 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.1362, allocations: 0 / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.757e-05/0.1362, allocations: 0 / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.1362, allocations: 0 / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.357e-05/0.1363, allocations: 87.2 kB / 448.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1363, allocations: 0 / 448.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000512/0.1368, allocations: 136 kB / 448.2 MB, free: 15.41 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.0007526/0.1375, allocations: 357.7 kB / 448.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.1377, allocations: 67.39 kB / 448.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1377, allocations: 0 / 448.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.335e-05/0.1377, allocations: 59.47 kB / 448.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001265/0.1379, allocations: 3.375 kB / 448.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002205/0.1381, allocations: 110.7 kB / 448.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.1384, allocations: 0.669 MB / 449.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.1384, allocations: 11.44 kB / 449.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1384, allocations: 0 / 449.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of Templates: time 0.007313/0.1457, allocations: 3.624 MB / 453.1 MB, free: 10.43 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","../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches