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.001661/0.00166, allocations: 112.8 kB / 17.78 MB, free: 5.281 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.001732/0.001732, allocations: 180.9 kB / 18.71 MB, free: 4.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.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2048/0.2048, allocations: 44.19 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 64.05 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3354, allocations: 60.82 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001383/0.3368, allocations: 479.9 kB / 0.5188 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.3396, allocations: 2.286 MB / 0.5211 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.199e-05/0.3396, allocations: 0 / 0.5211 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.477e-05/0.3397, allocations: 0 / 0.5211 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-06/0.3397, allocations: 0 / 0.5211 GB, free: 1.41 MB / 382.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.002513/0.3422, allocations: 1.126 MB / 0.5222 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.605e-05/0.3423, allocations: 6.828 kB / 0.5222 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.694e-05/0.3423, allocations: 1.391 kB / 0.5222 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.602e-05/0.3423, allocations: 5.297 kB / 0.5222 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.758e-05/0.3423, allocations: 0 / 0.5222 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.8e-06/0.3424, allocations: 0 / 0.5222 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.3439, allocations: 0.9918 MB / 0.5232 GB, free: 468 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.3439, allocations: 0 / 0.5232 GB, free: 468 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.848e-05/0.3439, allocations: 1.609 kB / 0.5232 GB, free: 468 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005889/0.3445, allocations: 421.1 kB / 0.5236 GB, free: 300 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3445, allocations: 0 / 0.5236 GB, free: 300 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3445, allocations: 1.984 kB / 0.5236 GB, free: 300 kB / 382.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.3445, allocations: 0 / 0.5236 GB, free: 300 kB / 382.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.0003895/0.3449, allocations: 435 kB / 0.524 GB, free: 15.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.345, allocations: 14.47 kB / 0.524 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.345, allocations: 30.75 kB / 0.524 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.833e-05/0.345, allocations: 11.22 kB / 0.524 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.939e-05/0.3451, allocations: 164.9 kB / 0.5242 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3452, allocations: 384 / 0.5242 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.738e-06/0.3452, allocations: 1.781 kB / 0.5242 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.916e-05/0.3453, allocations: 38.34 kB / 0.5242 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.3453, allocations: 0.6094 kB / 0.5242 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.3453, allocations: 0 / 0.5242 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.3453, allocations: 0 / 0.5242 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.933e-05/0.3453, allocations: 6.469 kB / 0.5242 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.3455, allocations: 144.6 kB / 0.5244 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.258e-05/0.3455, allocations: 25.16 kB / 0.5244 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.3455, allocations: 5.516 kB / 0.5244 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.3455, allocations: 5.781 kB / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.097e-05/0.3456, allocations: 60.72 kB / 0.5245 GB, free: 15.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3456, allocations: 5.688 kB / 0.5245 GB, free: 15.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001744/0.3458, allocations: 61.34 kB / 0.5245 GB, free: 15.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.3459, allocations: 81.81 kB / 0.5246 GB, free: 15.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.168e-05/0.3459, allocations: 89.86 kB / 0.5247 GB, free: 15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.3459, allocations: 27.48 kB / 0.5247 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.518e-05/0.346, allocations: 80.14 kB / 0.5248 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.346, allocations: 0 / 0.5248 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.346, allocations: 12.89 kB / 0.5248 GB, free: 14.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.3462, allocations: 316.8 kB / 0.5251 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.078e-05/0.3463, allocations: 0.6562 kB / 0.5251 GB, free: 14.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.606e-06/0.3463, allocations: 5.719 kB / 0.5251 GB, free: 14.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.831e-05/0.3463, allocations: 65.08 kB / 0.5252 GB, free: 14.47 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3463, allocations: 0 / 0.5252 GB, free: 14.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.844e-05/0.3464, allocations: 60.27 kB / 0.5252 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.3464, allocations: 35.73 kB / 0.5253 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3465, allocations: 0.7031 kB / 0.5253 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3465, allocations: 4.094 kB / 0.5253 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3465, allocations: 1.781 kB / 0.5253 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3465, allocations: 0 / 0.5253 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.3465, allocations: 4.5 kB / 0.5253 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.3465, allocations: 1.75 kB / 0.5253 GB, free: 14.37 MB / 398.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.318e-05/0.3466, allocations: 134.5 kB / 0.5254 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.3466, allocations: 14.48 kB / 0.5254 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.167e-05/0.3467, allocations: 11.02 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3467, allocations: 4.453 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3467, allocations: 4 kB / 0.5254 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3467, allocations: 0 / 0.5254 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.318e-05/0.3468, allocations: 149.9 kB / 0.5256 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3468, allocations: 5.75 kB / 0.5256 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.372e-06/0.3468, allocations: 0.5625 kB / 0.5256 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3468, allocations: 3.938 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.3468, allocations: 1.812 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3468, allocations: 0.5625 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3468, allocations: 0 / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.776e-05/0.3469, allocations: 97.72 kB / 0.5257 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.347, allocations: 81.66 kB / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.347, allocations: 1.922 kB / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-06/0.347, allocations: 0 / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.347, allocations: 1.875 kB / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.347, allocations: 0 / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.3471, allocations: 76.62 kB / 0.5258 GB, free: 13.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3471, allocations: 0 / 0.5258 GB, free: 13.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004236/0.3475, allocations: 141.1 kB / 0.526 GB, free: 13.68 MB / 398.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.000937/0.3484, allocations: 0.8928 MB / 0.5269 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001114/0.3486, allocations: 59.02 kB / 0.5269 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3486, allocations: 0 / 0.5269 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.493e-05/0.3486, allocations: 62.7 kB / 0.527 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.3487, allocations: 5.25 kB / 0.527 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/0.3491, allocations: 170.5 kB / 0.5271 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.3495, allocations: 0.6748 MB / 0.5278 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.69e-06/0.3495, allocations: 1.375 kB / 0.5278 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.362e-05/0.3495, allocations: 8.812 kB / 0.5278 GB, free: 11.95 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3495, allocations: 0 / 0.5278 GB, free: 11.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/0.375, allocations: 5.314 MB / 0.533 GB, free: 9.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.988/8.363, allocations: 3.938 kB / 0.533 GB, free: 9.426 MB / 398.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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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