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.001525/0.001526, allocations: 107.6 kB / 17.32 MB, free: 5.672 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.001936/0.001936, allocations: 193.3 kB / 18.25 MB, free: 4.977 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.362/1.362, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2081/0.2081, allocations: 44.18 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 64.02 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1015, allocations: 60.82 MB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001778/0.1033, allocations: 0.5293 MB / 469.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003162/0.1065, allocations: 2.27 MB / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.94e-05/0.1065, allocations: 0 / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.1065, allocations: 0 / 471.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-06/0.1066, 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.002774/0.1094, allocations: 1.046 MB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.12e-05/0.1094, allocations: 4 kB / 472.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.754e-05/0.1095, allocations: 3.984 kB / 472.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.512e-05/0.1095, allocations: 0 / 472.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.809e-05/0.1095, allocations: 3.938 kB / 472.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.1095, allocations: 3.984 kB / 472.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.1111, allocations: 0.96 MB / 473.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.1111, allocations: 0 / 473.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.335e-05/0.1112, allocations: 4 kB / 473.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007784/0.112, allocations: 423.3 kB / 474.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.112, allocations: 3.984 kB / 474.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.112, allocations: 4 kB / 474.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.112, allocations: 0 / 474.1 MB, free: 9.375 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.0005006/0.1125, allocations: 421.2 kB / 474.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1126, allocations: 8.031 kB / 474.5 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.586e-05/0.1126, allocations: 30.75 kB / 474.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.1126, allocations: 4.922 kB / 474.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.052e-05/0.1127, allocations: 160.4 kB / 474.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.1128, allocations: 8.375 kB / 474.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.1128, allocations: 384 / 474.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.348e-05/0.1129, allocations: 33.77 kB / 474.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.1129, allocations: 0 / 474.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1129, allocations: 7.984 kB / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1129, allocations: 0 / 474.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.192e-05/0.1129, allocations: 3.938 kB / 474.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.1131, allocations: 149.7 kB / 474.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.198e-05/0.1131, allocations: 22.61 kB / 474.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.539e-05/0.1132, allocations: 4.859 kB / 474.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.1132, allocations: 0 / 474.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/0.1132, allocations: 64.27 kB / 475 MB, free: 8.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1132, allocations: 0 / 475 MB, free: 8.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001909/0.1134, allocations: 71.33 kB / 475 MB, free: 8.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.847e-05/0.1135, allocations: 77.11 kB / 475.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.868e-05/0.1136, allocations: 89.98 kB / 475.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1136, allocations: 33.64 kB / 475.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.384e-05/0.1136, allocations: 80.14 kB / 475.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.1136, allocations: 288 / 475.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.1137, allocations: 13.72 kB / 475.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1138, allocations: 314.8 kB / 475.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.1138, allocations: 0 / 475.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.016e-05/0.1138, allocations: 7.984 kB / 475.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.423e-05/0.1139, allocations: 64.33 kB / 475.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1139, allocations: 0 / 475.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.952e-05/0.114, allocations: 63.34 kB / 475.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.114, allocations: 33.64 kB / 475.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.114, allocations: 7.984 kB / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.1141, allocations: 0 / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.1141, allocations: 0 / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1141, allocations: 0 / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.733e-05/0.1141, allocations: 3.938 kB / 475.8 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.1141, allocations: 0 / 475.8 MB, free: 7.352 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 8.645e-05/0.1142, allocations: 143.6 kB / 475.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.1142, allocations: 7.844 kB / 475.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.073e-05/0.1142, allocations: 7.078 kB / 476 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1142, allocations: 0 / 476 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1142, allocations: 0 / 476 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1143, allocations: 7.938 kB / 476 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.347e-05/0.1144, allocations: 145.7 kB / 476.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1144, allocations: 0 / 476.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1144, allocations: 0 / 476.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1144, allocations: 7.938 kB / 476.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.1144, allocations: 0 / 476.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1144, allocations: 4 kB / 476.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1144, allocations: 0 / 476.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.647e-05/0.1145, allocations: 94.75 kB / 476.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.1145, allocations: 81.05 kB / 476.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.1146, allocations: 4 kB / 476.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-06/0.1146, allocations: 0 / 476.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.1146, allocations: 4.031 kB / 476.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-06/0.1146, allocations: 3.984 kB / 476.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.589e-05/0.1146, allocations: 79.28 kB / 476.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1146, allocations: 0 / 476.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004813/0.1151, allocations: 140 kB / 476.5 MB, free: 6.527 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.001001/0.1161, allocations: 0.8876 MB / 477.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.1163, allocations: 71.39 kB / 477.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1163, allocations: 0 / 477.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.914e-05/0.1163, allocations: 51.41 kB / 477.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.1164, allocations: 6.188 kB / 477.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004037/0.1169, allocations: 178.5 kB / 477.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1171, allocations: 0.669 MB / 478.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.073e-06/0.1171, allocations: 0 / 478.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.728e-05/0.1171, allocations: 7.438 kB / 478.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1171, allocations: 128 / 478.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08018/0.1973, allocations: 5.219 MB / 483.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/0.1976, allocations: 257.5 kB / 483.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/2.694, allocations: 0 / 483.8 MB, free: 15.17 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