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.001536/0.001536, allocations: 107 kB / 17.33 MB, free: 6 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.001504/0.001504, allocations: 193.3 kB / 18.25 MB, free: 5.09 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.351/1.351, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2042/0.2042, allocations: 44.18 MB / 336.2 MB, free: 2.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 60.61 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 60.83 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002057/0.1059, allocations: 0.5215 MB / 469.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.1091, allocations: 2.27 MB / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.784e-05/0.1091, allocations: 0 / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.1091, allocations: 0 / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1092, allocations: 0 / 471.6 MB, free: 11.82 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.002487/0.1116, allocations: 1.058 MB / 472.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.94e-05/0.1117, allocations: 0 / 472.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.347e-05/0.1117, allocations: 4 kB / 472.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.625e-05/0.1118, allocations: 4 kB / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.756e-05/0.1118, allocations: 0 / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-06/0.1118, allocations: 0 / 472.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.1132, allocations: 0.9716 MB / 473.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.1132, allocations: 0 / 473.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.794e-05/0.1132, allocations: 0 / 473.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006264/0.1139, allocations: 419.4 kB / 474 MB, free: 9.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1139, allocations: 0 / 474 MB, free: 9.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1139, allocations: 0 / 474 MB, free: 9.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1139, allocations: 0 / 474 MB, free: 9.371 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.0004205/0.1143, allocations: 425.2 kB / 474.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.1144, allocations: 12.03 kB / 474.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.1144, allocations: 34.75 kB / 474.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.581e-05/0.1144, allocations: 8.875 kB / 474.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.942e-05/0.1145, allocations: 160.4 kB / 474.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1146, allocations: 4.359 kB / 474.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.1146, allocations: 4.375 kB / 474.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.345e-05/0.1146, allocations: 33.77 kB / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.1147, allocations: 0 / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.1147, allocations: 0 / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.1147, allocations: 3.938 kB / 474.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.566e-05/0.1147, allocations: 4 kB / 474.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.1148, allocations: 145.7 kB / 474.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.768e-05/0.1149, allocations: 30.53 kB / 474.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.1149, allocations: 4.859 kB / 474.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.1149, allocations: 0 / 474.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.115, allocations: 60.2 kB / 475 MB, free: 8.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.115, allocations: 0 / 475 MB, free: 8.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001561/0.1151, allocations: 59.47 kB / 475 MB, free: 8.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.1152, allocations: 97.16 kB / 475.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.533e-05/0.1152, allocations: 89.86 kB / 475.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.1153, allocations: 25.7 kB / 475.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.238e-05/0.1153, allocations: 80.14 kB / 475.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.1153, allocations: 288 / 475.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.1153, allocations: 13.72 kB / 475.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1155, allocations: 310.8 kB / 475.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.906e-06/0.1155, allocations: 0 / 475.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.23e-06/0.1155, allocations: 4 kB / 475.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.412e-05/0.1155, allocations: 64.27 kB / 475.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1155, allocations: 0 / 475.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.384e-05/0.1156, allocations: 63.39 kB / 475.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.1157, allocations: 33.64 kB / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1157, allocations: 4 kB / 475.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.1157, allocations: 3.938 kB / 475.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.344e-06/0.1157, allocations: 4 kB / 475.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1157, allocations: 96 / 475.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.417e-05/0.1157, allocations: 7.938 kB / 475.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1157, allocations: 0 / 475.8 MB, free: 7.336 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 0.0001284/0.1159, allocations: 139.5 kB / 475.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.1159, allocations: 7.844 kB / 475.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.214e-05/0.1159, allocations: 11.08 kB / 476 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.1159, allocations: 3.984 kB / 476 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1159, allocations: 0 / 476 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-06/0.1159, allocations: 3.938 kB / 476 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.884e-05/0.116, allocations: 153.7 kB / 476.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.116, allocations: 0 / 476.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.116, allocations: 0 / 476.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.116, allocations: 3.938 kB / 476.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.116, allocations: 0 / 476.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.116, allocations: 0 / 476.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1161, allocations: 0 / 476.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.865e-05/0.1161, allocations: 94.77 kB / 476.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.797e-05/0.1162, allocations: 89.02 kB / 476.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.1162, allocations: 4 kB / 476.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-06/0.1163, allocations: 0 / 476.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.181e-05/0.1163, allocations: 0 / 476.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1163, allocations: 0 / 476.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.461e-05/0.1163, allocations: 75.28 kB / 476.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1163, allocations: 0 / 476.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004465/0.1168, allocations: 144 kB / 476.5 MB, free: 6.512 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.0009077/0.1177, allocations: 0.8891 MB / 477.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.75e-05/0.1178, allocations: 59.34 kB / 477.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1178, allocations: 0 / 477.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.548e-05/0.1178, allocations: 63.39 kB / 477.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.1179, allocations: 4 kB / 477.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003812/0.1183, allocations: 166.5 kB / 477.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1186, allocations: 0.6768 MB / 478.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.13e-06/0.1186, allocations: 4.125 kB / 478.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.262e-05/0.1186, allocations: 7.438 kB / 478.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1186, allocations: 0 / 478.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4206/0.5393, allocations: 5.223 MB / 483.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/0.5396, allocations: 247.2 kB / 483.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/2.793, allocations: 0 / 483.8 MB, free: 15.16 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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