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.001151/0.001152, allocations: 106.3 kB / 17.2 MB, free: 6.289 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.001111/0.001111, allocations: 194 kB / 18.12 MB, free: 5.383 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.386/1.386, allocations: 222.9 MB / 241.8 MB, free: 13.72 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.2127/0.2127, allocations: 44.18 MB / 336.1 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 60.28 kB / 407.8 MB, free: 27.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1171, allocations: 60.83 MB / 468.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001787/0.1189, allocations: 0.5209 MB / 469.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003222/0.1221, allocations: 2.345 MB / 471.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.284e-05/0.1222, allocations: 4 kB / 471.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.864e-05/0.1222, allocations: 0 / 471.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1222, allocations: 3.938 kB / 471.5 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.002649/0.1249, allocations: 1.023 MB / 472.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.633e-05/0.1249, allocations: 8 kB / 472.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.125, allocations: 3.984 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.699e-05/0.125, allocations: 0 / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.352e-05/0.125, allocations: 3.984 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.1251, allocations: 0 / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001656/0.1267, allocations: 0.9561 MB / 473.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.1268, allocations: 0 / 473.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.815e-05/0.1268, allocations: 4 kB / 473.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007474/0.1275, allocations: 419.3 kB / 473.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1276, allocations: 0 / 473.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1276, allocations: 4 kB / 473.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1276, allocations: 0 / 473.9 MB, free: 9.402 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.0004672/0.128, allocations: 433.2 kB / 474.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1281, allocations: 8.031 kB / 474.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.066e-05/0.1281, allocations: 30.75 kB / 474.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.662e-05/0.1282, allocations: 4.875 kB / 474.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.1283, allocations: 168.4 kB / 474.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.1283, allocations: 4.375 kB / 474.5 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.1283, allocations: 4.375 kB / 474.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.937e-05/0.1284, allocations: 37.7 kB / 474.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1284, allocations: 0 / 474.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.1284, allocations: 4 kB / 474.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.1284, allocations: 3.984 kB / 474.6 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.1285, allocations: 4 kB / 474.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002284/0.1287, allocations: 149.7 kB / 474.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.206e-05/0.1287, allocations: 22.61 kB / 474.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.355e-05/0.1288, allocations: 4.859 kB / 474.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-06/0.1288, allocations: 0 / 474.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.1288, allocations: 68.2 kB / 474.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1288, allocations: 0 / 474.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002042/0.129, allocations: 59.39 kB / 474.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.1291, allocations: 85.11 kB / 475 MB, free: 8.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.937e-05/0.1292, allocations: 89.86 kB / 475.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1292, allocations: 29.83 kB / 475.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.828e-05/0.1292, allocations: 80.14 kB / 475.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.593e-05/0.1292, allocations: 288 / 475.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.1293, allocations: 13.72 kB / 475.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1294, allocations: 310.8 kB / 475.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.788e-06/0.1294, allocations: 0 / 475.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-06/0.1294, allocations: 0 / 475.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.139e-05/0.1295, allocations: 76.25 kB / 475.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1295, allocations: 0 / 475.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.028e-05/0.1296, allocations: 59.41 kB / 475.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.1296, allocations: 33.64 kB / 475.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1296, allocations: 0 / 475.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1297, allocations: 4 kB / 475.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.595e-06/0.1297, allocations: 3.984 kB / 475.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.1297, allocations: 0 / 475.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.1297, allocations: 3.938 kB / 475.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.1297, allocations: 0 / 475.7 MB, free: 7.363 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.0001248/0.1298, allocations: 143.6 kB / 475.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.1299, allocations: 7.844 kB / 475.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.147e-05/0.1299, allocations: 7.078 kB / 475.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1299, allocations: 0 / 475.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1299, allocations: 0 / 475.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1299, allocations: 3.938 kB / 475.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.503e-05/0.13, allocations: 153.7 kB / 476 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.13, allocations: 3.938 kB / 476 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.094e-06/0.13, allocations: 3.938 kB / 476 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.13, allocations: 7.938 kB / 476 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.13, allocations: 0 / 476 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.13, allocations: 0 / 476 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.13, allocations: 4 kB / 476 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.423e-05/0.1301, allocations: 86.83 kB / 476.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.231e-05/0.1302, allocations: 81.05 kB / 476.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.1302, allocations: 4 kB / 476.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.548e-06/0.1303, allocations: 0 / 476.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.1303, allocations: 4.031 kB / 476.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.1303, allocations: 4 kB / 476.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.38e-05/0.1303, allocations: 75.28 kB / 476.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1303, allocations: 0 / 476.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000449/0.1308, allocations: 144 kB / 476.4 MB, free: 6.535 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.001105/0.1319, allocations: 0.8867 MB / 477.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001035/0.132, allocations: 67.39 kB / 477.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.132, allocations: 4 kB / 477.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.259e-05/0.1321, allocations: 51.41 kB / 477.4 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.1322, allocations: 4 kB / 477.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.1326, allocations: 164.3 kB / 477.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.133, allocations: 0.677 MB / 478.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.885e-06/0.133, allocations: 0 / 478.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.842e-05/0.133, allocations: 7.438 kB / 478.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.133, allocations: 128 / 478.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.152, allocations: 5.18 MB / 483.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.1522, allocations: 251 kB / 483.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.103, allocations: 3.938 kB / 483.7 MB, free: 15.2 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