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.001282/0.001282, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001308/0.001308, allocations: 181 kB / 18.71 MB, free: 4.207 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.427/1.427, 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.2371/0.2371, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.83 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3312, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001565/0.3328, allocations: 478.9 kB / 0.5188 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002968/0.3358, allocations: 2.285 MB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.3359, allocations: 0 / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.084e-05/0.3359, allocations: 1.125 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.52e-06/0.3359, 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.002565/0.3385, allocations: 1.13 MB / 0.5222 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.742e-05/0.3385, allocations: 5.312 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.39e-05/0.3386, allocations: 1.875 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.721e-05/0.3386, allocations: 1.469 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.914e-05/0.3386, allocations: 0.7031 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-06/0.3386, allocations: 1.406 kB / 0.5222 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.3403, allocations: 0.9942 MB / 0.5232 GB, free: 440 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.3403, allocations: 0 / 0.5232 GB, free: 440 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.105e-05/0.3404, allocations: 1.188 kB / 0.5232 GB, free: 440 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006784/0.3411, allocations: 421.7 kB / 0.5236 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3411, allocations: 0.7969 kB / 0.5236 GB, free: 272 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3411, allocations: 0 / 0.5236 GB, free: 272 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.3411, 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.0005117/0.3416, allocations: 427.5 kB / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.3417, allocations: 14.75 kB / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.3417, allocations: 34.75 kB / 0.524 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.84e-05/0.3418, allocations: 10.75 kB / 0.524 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.3419, allocations: 161.4 kB / 0.5242 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.3419, allocations: 1.125 kB / 0.5242 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-06/0.3419, allocations: 2.156 kB / 0.5242 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.773e-05/0.3421, allocations: 36.3 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.3421, allocations: 0.8438 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.3421, allocations: 0 / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.3421, allocations: 1.875 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.823e-05/0.3421, allocations: 4 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001729/0.3423, allocations: 145.5 kB / 0.5244 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.382e-05/0.3423, allocations: 21.34 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.3424, allocations: 6.641 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.3424, allocations: 0 / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/0.3425, allocations: 66.84 kB / 0.5245 GB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.093e-06/0.3425, allocations: 4 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001786/0.3426, allocations: 61.11 kB / 0.5245 GB, free: 15.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.3427, allocations: 78.89 kB / 0.5246 GB, free: 15.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.275e-05/0.3428, allocations: 94.56 kB / 0.5247 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.3428, allocations: 25.7 kB / 0.5247 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.3429, allocations: 80.14 kB / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.889e-05/0.3429, allocations: 1.812 kB / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.3429, allocations: 12.3 kB / 0.5248 GB, free: 14.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3431, allocations: 315.5 kB / 0.5251 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.207e-05/0.3431, allocations: 1.781 kB / 0.5251 GB, free: 14.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.042e-05/0.3431, allocations: 4.781 kB / 0.5251 GB, free: 14.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.866e-05/0.3432, allocations: 64.42 kB / 0.5252 GB, free: 14.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3432, allocations: 0 / 0.5252 GB, free: 14.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.23e-05/0.3433, allocations: 60.44 kB / 0.5252 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.357e-05/0.3433, allocations: 39.11 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3433, allocations: 1.812 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3434, allocations: 4.094 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.793e-06/0.3434, allocations: 0.7031 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3434, allocations: 0 / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.3434, allocations: 5.719 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.3434, allocations: 0.5156 kB / 0.5253 GB, free: 14.35 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 0.0001029/0.3435, allocations: 134.1 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.3435, allocations: 14.56 kB / 0.5254 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.336e-05/0.3436, allocations: 7.641 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3436, allocations: 0 / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3436, allocations: 10.88 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.3436, allocations: 0 / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.3437, allocations: 155.6 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3437, allocations: 6 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.563e-06/0.3437, allocations: 0.6562 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3437, allocations: 3.938 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.3437, allocations: 0.6094 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3438, allocations: 1.531 kB / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3438, allocations: 0 / 0.5256 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.3439, allocations: 92.62 kB / 0.5257 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.3439, allocations: 81.61 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.344, allocations: 1.938 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-06/0.344, allocations: 1.25 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.344, allocations: 0.7031 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.344, allocations: 1.281 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.555e-05/0.344, allocations: 75.28 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.344, allocations: 1.156 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00048/0.3445, allocations: 144.9 kB / 0.526 GB, free: 13.65 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.001115/0.3457, allocations: 0.8927 MB / 0.5269 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.619e-05/0.3458, allocations: 57.08 kB / 0.5269 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3458, allocations: 1.375 kB / 0.5269 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.193e-05/0.3458, allocations: 59.23 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.000121/0.346, allocations: 6.438 kB / 0.527 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003962/0.3464, allocations: 170.3 kB / 0.5271 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.3467, allocations: 0.6753 MB / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.3467, allocations: 1.375 kB / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.3467, allocations: 8.812 kB / 0.5278 GB, free: 11.93 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3467, allocations: 0 / 0.5278 GB, free: 11.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.3768, allocations: 5.309 MB / 0.533 GB, free: 9.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.443/8.82, allocations: 5.5 kB / 0.533 GB, free: 9.414 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