Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",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.001855/0.001855, allocations: 112.7 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.002197/0.002197, allocations: 180.1 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.473/1.473, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2217/0.2217, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002604/0.002604, allocations: 71.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.323, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0014/0.3244, allocations: 475.5 kB / 0.5189 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.3271, allocations: 2.282 MB / 0.5211 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.623e-05/0.3271, allocations: 0 / 0.5211 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.456e-05/0.3271, allocations: 4 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.3271, allocations: 0 / 0.5211 GB, free: 1.387 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.002388/0.3295, allocations: 1.133 MB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.443e-05/0.3296, allocations: 2.875 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.686e-05/0.3296, allocations: 0.7031 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.345e-05/0.3296, allocations: 1.031 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.981e-05/0.3297, allocations: 6.109 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-06/0.3297, allocations: 0 / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.3311, allocations: 0.9904 MB / 0.5232 GB, free: 440 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.263e-06/0.3312, allocations: 1.156 kB / 0.5232 GB, free: 440 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.666e-05/0.3312, allocations: 1.125 kB / 0.5232 GB, free: 440 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005347/0.3317, allocations: 421.3 kB / 0.5236 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3317, allocations: 0 / 0.5236 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3318, allocations: 0 / 0.5236 GB, free: 272 kB / 382.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.3318, allocations: 3.938 kB / 0.5236 GB, free: 268 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.0003876/0.3322, allocations: 437.1 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3322, allocations: 9.688 kB / 0.524 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.3322, allocations: 31.5 kB / 0.524 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.265e-05/0.3323, allocations: 9.812 kB / 0.524 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.3324, allocations: 161.8 kB / 0.5242 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.3324, allocations: 1.812 kB / 0.5242 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-06/0.3324, allocations: 384 / 0.5242 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.077e-05/0.3325, allocations: 38.22 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.3325, allocations: 0 / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-06/0.3325, allocations: 4 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3325, allocations: 1.469 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.572e-05/0.3326, allocations: 0.75 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.3327, allocations: 148.7 kB / 0.5244 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.436e-05/0.3328, allocations: 17.45 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.3328, allocations: 7.422 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.455e-06/0.3328, allocations: 3.938 kB / 0.5244 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/0.3329, allocations: 65 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3329, allocations: 1.781 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001602/0.3331, allocations: 64.84 kB / 0.5245 GB, free: 15.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.3331, allocations: 77.81 kB / 0.5246 GB, free: 15.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.679e-05/0.3332, allocations: 91.7 kB / 0.5247 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.3332, allocations: 25.7 kB / 0.5247 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.435e-05/0.3332, allocations: 80.89 kB / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.3333, allocations: 0 / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.3333, allocations: 16.53 kB / 0.5248 GB, free: 14.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3335, allocations: 312.7 kB / 0.5251 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.022e-05/0.3335, allocations: 0.75 kB / 0.5251 GB, free: 14.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.265e-06/0.3335, allocations: 5.719 kB / 0.5251 GB, free: 14.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.375e-05/0.3335, allocations: 64.61 kB / 0.5252 GB, free: 14.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3336, allocations: 0.6094 kB / 0.5252 GB, free: 14.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.363e-05/0.3336, allocations: 60.5 kB / 0.5252 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.3337, allocations: 39.72 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.3337, allocations: 4 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3337, allocations: 0 / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.3337, allocations: 2.672 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.858e-06/0.3337, allocations: 0 / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.661e-05/0.3337, allocations: 3.938 kB / 0.5253 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.3338, allocations: 1.812 kB / 0.5253 GB, free: 14.34 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 9.945e-05/0.3339, allocations: 139.2 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.3339, allocations: 13.61 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.152e-05/0.3339, allocations: 16 kB / 0.5254 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3339, allocations: 0 / 0.5254 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3339, allocations: 0 / 0.5254 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3339, allocations: 5.766 kB / 0.5255 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.334, allocations: 144 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.334, allocations: 5.719 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3341, allocations: 0 / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3341, allocations: 4.969 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.3341, allocations: 1.781 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3341, allocations: 0 / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3341, allocations: 0 / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.915e-05/0.3342, allocations: 92.45 kB / 0.5257 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.3342, allocations: 81.75 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.3343, allocations: 2.641 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3343, allocations: 0.6562 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.008e-05/0.3343, allocations: 2.281 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-06/0.3343, allocations: 0.5156 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.418e-05/0.3343, allocations: 75.31 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.436e-06/0.3344, allocations: 4 kB / 0.5258 GB, free: 13.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004183/0.3348, allocations: 148.8 kB / 0.526 GB, free: 13.64 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.001025/0.3358, allocations: 0.8829 MB / 0.5269 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.3359, allocations: 62.27 kB / 0.5269 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3359, allocations: 0 / 0.5269 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.002e-05/0.336, allocations: 58.84 kB / 0.527 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.3361, allocations: 7.438 kB / 0.527 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003649/0.3365, allocations: 166.7 kB / 0.5271 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.3368, allocations: 0.6753 MB / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.979e-06/0.3368, allocations: 0 / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.359e-05/0.3368, allocations: 8.812 kB / 0.5278 GB, free: 11.93 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3368, allocations: 0 / 0.5278 GB, free: 11.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.3671, allocations: 5.319 MB / 0.533 GB, free: 9.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.335/8.702, allocations: 2.469 kB / 0.533 GB, free: 9.414 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_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_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches