Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001833/0.001833, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 241.8 MB, free: 15.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1994/0.1994, allocations: 44.17 MB / 336.1 MB, free: 3.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 61.3 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1206, allocations: 60.81 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001918/0.1226, allocations: 0.5254 MB / 469.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003589/0.1262, allocations: 2.352 MB / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.316e-05/0.1262, allocations: 0 / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.326e-05/0.1263, allocations: 0 / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.691e-06/0.1263, allocations: 0 / 471.5 MB, free: 11.87 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.002573/0.1289, allocations: 1.031 MB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.707e-05/0.1289, allocations: 7.984 kB / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.15e-05/0.129, allocations: 3.984 kB / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.671e-05/0.129, allocations: 0 / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.069e-05/0.129, allocations: 0 / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.974e-06/0.1291, allocations: 4 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001825/0.1309, allocations: 0.9599 MB / 473.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.097e-05/0.1309, allocations: 3.984 kB / 473.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.666e-05/0.1309, allocations: 7.938 kB / 473.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007678/0.1317, allocations: 415.3 kB / 473.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1317, allocations: 0 / 473.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1317, allocations: 4 kB / 473.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1317, allocations: 0 / 473.9 MB, free: 9.441 MB / 350.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.0004921/0.1322, allocations: 431.8 kB / 474.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.1323, allocations: 12.02 kB / 474.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.539e-05/0.1323, allocations: 34.75 kB / 474.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.462e-05/0.1324, allocations: 0.9375 kB / 474.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.401e-05/0.1325, allocations: 164.4 kB / 474.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1325, allocations: 4.375 kB / 474.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-06/0.1325, allocations: 384 / 474.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.034e-05/0.1326, allocations: 29.83 kB / 474.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1326, allocations: 0 / 474.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.1326, allocations: 8 kB / 474.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.1326, allocations: 0 / 474.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.44e-05/0.1327, allocations: 3.938 kB / 474.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.1328, allocations: 145.7 kB / 474.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.7e-05/0.1329, allocations: 22.61 kB / 474.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.593e-05/0.1329, allocations: 4.859 kB / 474.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-06/0.1329, allocations: 0 / 474.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.55e-05/0.133, allocations: 68.27 kB / 474.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.133, allocations: 0 / 474.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001815/0.1332, allocations: 71.31 kB / 474.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.1332, allocations: 77.11 kB / 475 MB, free: 8.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.016e-05/0.1333, allocations: 93.86 kB / 475.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.1333, allocations: 25.7 kB / 475.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.816e-05/0.1333, allocations: 80.14 kB / 475.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1333, allocations: 288 / 475.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.1334, allocations: 21.78 kB / 475.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1335, allocations: 314.8 kB / 475.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-06/0.1336, allocations: 0 / 475.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-06/0.1336, allocations: 0 / 475.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.026e-05/0.1336, allocations: 64.27 kB / 475.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1336, allocations: 4 kB / 475.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.82e-05/0.1337, allocations: 63.34 kB / 475.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/0.1338, allocations: 39.97 kB / 475.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1338, allocations: 8.094 kB / 475.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1338, allocations: 0 / 475.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1338, allocations: 3.938 kB / 475.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.1338, allocations: 0 / 475.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.816e-05/0.1338, allocations: 3.938 kB / 475.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.1339, allocations: 0 / 475.7 MB, free: 7.402 MB / 350.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 8.741e-05/0.134, allocations: 135.5 kB / 475.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.134, allocations: 7.844 kB / 475.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.476e-05/0.134, allocations: 11.08 kB / 475.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.134, allocations: 4 kB / 475.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.134, allocations: 0 / 475.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.134, allocations: 3.984 kB / 475.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.1342, allocations: 145.7 kB / 476 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1342, allocations: 0 / 476 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.1342, allocations: 0 / 476 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1342, allocations: 3.938 kB / 476 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.1342, allocations: 0 / 476 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1342, allocations: 0 / 476 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1342, allocations: 4 kB / 476 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.1343, allocations: 94.77 kB / 476.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.553e-05/0.1344, allocations: 81.05 kB / 476.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1344, allocations: 4 kB / 476.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.001e-05/0.1344, allocations: 0 / 476.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.1344, allocations: 3.984 kB / 476.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.1345, allocations: 0 / 476.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.771e-05/0.1345, allocations: 75.28 kB / 476.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1345, allocations: 32 / 476.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004723/0.135, allocations: 140 kB / 476.4 MB, free: 6.594 MB / 350.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.001053/0.1361, allocations: 0.8943 MB / 477.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.507e-05/0.1362, allocations: 59.39 kB / 477.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1362, allocations: 4 kB / 477.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.905e-05/0.1362, allocations: 55.41 kB / 477.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.1364, allocations: 7.625 kB / 477.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003869/0.1368, allocations: 172.3 kB / 477.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.137, allocations: 0.6731 MB / 478.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.76e-06/0.137, allocations: 0 / 478.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.499e-05/0.137, allocations: 7.438 kB / 478.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1371, allocations: 0 / 478.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.154, allocations: 5.177 MB / 483.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/0.1542, allocations: 253.8 kB / 483.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.116, allocations: 3.938 kB / 483.7 MB, free: 15.25 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches