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.001331/0.001335, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001535/0.001535, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.318/1.318, allocations: 222.9 MB / 242.3 MB, free: 15.22 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.1992/0.1992, allocations: 44.17 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 65.3 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09121/0.09249, allocations: 60.81 MB / 469.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001475/0.094, allocations: 479 kB / 469.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002844/0.09686, allocations: 2.278 MB / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.309e-05/0.0969, allocations: 0 / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.368e-06/0.09693, allocations: 0 / 472.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.438e-06/0.09694, allocations: 0 / 472.1 MB, free: 11.53 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.002349/0.09929, allocations: 1.136 MB / 473.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.016e-05/0.09934, allocations: 4 kB / 473.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.994e-05/0.09938, allocations: 0 / 473.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.471e-05/0.0994, allocations: 4 kB / 473.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.739e-05/0.09942, allocations: 7.984 kB / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.879e-06/0.09943, allocations: 0 / 473.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001569/0.101, allocations: 0.9561 MB / 474.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.314e-06/0.101, allocations: 0 / 474.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.623e-05/0.101, allocations: 0 / 474.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005921/0.1016, allocations: 427.3 kB / 474.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1017, allocations: 0 / 474.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1017, allocations: 0 / 474.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.1017, allocations: 0 / 474.6 MB, free: 9.004 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.0004/0.1021, allocations: 429.2 kB / 475 MB, free: 8.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.1021, allocations: 8.031 kB / 475 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.436e-05/0.1022, allocations: 34.75 kB / 475.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.194e-05/0.1022, allocations: 0.9375 kB / 475.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.076e-05/0.1023, allocations: 160.4 kB / 475.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.1023, allocations: 384 / 475.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-06/0.1023, allocations: 4.375 kB / 475.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.428e-05/0.1024, allocations: 45.69 kB / 475.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.1024, allocations: 0 / 475.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1024, allocations: 0 / 475.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.1024, allocations: 0 / 475.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.483e-05/0.1024, allocations: 0 / 475.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001127/0.1025, allocations: 145.7 kB / 475.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.471e-05/0.1026, allocations: 22.56 kB / 475.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.16e-05/0.1026, allocations: 8.859 kB / 475.5 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.1026, allocations: 8.031 kB / 475.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.1027, allocations: 60.2 kB / 475.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.1027, allocations: 0 / 475.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001414/0.1028, allocations: 59.41 kB / 475.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.1029, allocations: 85.09 kB / 475.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.033e-05/0.1029, allocations: 89.86 kB / 475.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.1029, allocations: 29.83 kB / 475.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.097e-05/0.103, allocations: 80.14 kB / 475.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.103, allocations: 4.281 kB / 475.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.103, allocations: 9.719 kB / 475.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.1031, allocations: 314.8 kB / 476.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.859e-06/0.1031, allocations: 0 / 476.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.402e-06/0.1031, allocations: 7.938 kB / 476.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.224e-05/0.1032, allocations: 68.33 kB / 476.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1032, allocations: 0 / 476.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.804e-05/0.1033, allocations: 59.39 kB / 476.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.1033, allocations: 37.64 kB / 476.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1033, allocations: 0 / 476.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.297e-06/0.1033, allocations: 0 / 476.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.923e-06/0.1033, allocations: 4 kB / 476.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1033, allocations: 3.984 kB / 476.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.1034, allocations: 3.938 kB / 476.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.1034, allocations: 4 kB / 476.4 MB, free: 6.973 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 6.529e-05/0.1034, allocations: 139.6 kB / 476.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.1035, allocations: 11.84 kB / 476.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.723e-05/0.1035, allocations: 7.078 kB / 476.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.1035, allocations: 7.938 kB / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1035, allocations: 0 / 476.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.1035, allocations: 3.938 kB / 476.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.945e-05/0.1036, allocations: 149.7 kB / 476.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1036, allocations: 0 / 476.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1036, allocations: 0 / 476.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1036, allocations: 11.94 kB / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.1036, allocations: 0 / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.1036, allocations: 0 / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1036, allocations: 0 / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.958e-05/0.1037, allocations: 90.83 kB / 476.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.112e-05/0.1038, allocations: 85.03 kB / 476.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.1038, allocations: 0 / 476.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-06/0.1038, allocations: 0 / 476.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.123e-05/0.1038, allocations: 4.031 kB / 476.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.1038, allocations: 4 kB / 476.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.875e-05/0.1039, allocations: 79.28 kB / 476.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1039, allocations: 0 / 476.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.1043, allocations: 140 kB / 477.1 MB, free: 6.145 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.0008759/0.1052, allocations: 0.8947 MB / 478 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.854e-05/0.1053, allocations: 59.41 kB / 478 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1053, allocations: 0 / 478 MB, free: 5.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.079e-05/0.1053, allocations: 67.33 kB / 478.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.1054, allocations: 2.188 kB / 478.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/0.1058, allocations: 170.5 kB / 478.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.106, allocations: 0.669 MB / 478.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.751e-06/0.106, allocations: 0 / 478.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.613e-05/0.106, allocations: 15.42 kB / 479 MB, free: 4.156 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.106, allocations: 128 / 479 MB, free: 4.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2513/0.3574, allocations: 5.276 MB / 484.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.313/8.67, allocations: 6.906 kB / 484.2 MB, free: 14.94 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