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.001077/0.001077, 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.001183/0.001183, 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.262/1.262, allocations: 222.9 MB / 242.3 MB, free: 15.23 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.1972/0.1972, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 69.11 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1152, allocations: 60.82 MB / 469.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001645/0.1168, allocations: 463.8 kB / 469.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003/0.1199, allocations: 2.286 MB / 472.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.984e-05/0.1199, allocations: 4 kB / 472.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.175e-06/0.1199, allocations: 0 / 472.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.228e-06/0.1199, allocations: 0 / 472.1 MB, free: 11.55 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.002524/0.1225, allocations: 1.128 MB / 473.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.23e-05/0.1225, allocations: 8 kB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.483e-05/0.1226, allocations: 4 kB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.363e-05/0.1226, allocations: 0 / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.677e-05/0.1226, allocations: 0 / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.393e-06/0.1226, allocations: 3.984 kB / 473.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001429/0.1241, allocations: 0.9599 MB / 474.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.153e-06/0.1241, allocations: 0 / 474.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.658e-05/0.1241, allocations: 0 / 474.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006554/0.1248, allocations: 423.4 kB / 474.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1248, allocations: 4 kB / 474.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1248, allocations: 0 / 474.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1248, allocations: 3.938 kB / 474.6 MB, free: 9.02 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.0004297/0.1252, allocations: 425.2 kB / 475 MB, free: 8.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1253, allocations: 12.03 kB / 475 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.018e-05/0.1253, allocations: 30.75 kB / 475.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.1253, allocations: 0.9375 kB / 475.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.59e-05/0.1254, allocations: 164.3 kB / 475.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.335e-06/0.1254, allocations: 384 / 475.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1255, allocations: 4.312 kB / 475.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.038e-05/0.1255, allocations: 41.81 kB / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.1256, allocations: 0 / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.1256, allocations: 0 / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1256, allocations: 0 / 475.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.1256, allocations: 4 kB / 475.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001187/0.1257, allocations: 145.7 kB / 475.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.656e-05/0.1258, allocations: 18.52 kB / 475.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.754e-05/0.1258, allocations: 16.94 kB / 475.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.589e-06/0.1258, allocations: 0 / 475.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.1259, allocations: 64.2 kB / 475.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1259, allocations: 0 / 475.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.126, allocations: 63.41 kB / 475.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1261, allocations: 77.11 kB / 475.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.267e-05/0.1261, allocations: 93.84 kB / 475.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.1261, allocations: 33.64 kB / 475.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.203e-05/0.1262, allocations: 84.27 kB / 475.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.531e-05/0.1262, allocations: 288 / 475.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.386e-05/0.1262, allocations: 9.719 kB / 475.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1263, allocations: 318.8 kB / 476.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.486e-06/0.1263, allocations: 0 / 476.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.29e-06/0.1263, allocations: 0 / 476.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.455e-05/0.1264, allocations: 60.27 kB / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1264, allocations: 4.062 kB / 476.2 MB, free: 7.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.566e-05/0.1265, allocations: 63.39 kB / 476.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.1265, allocations: 33.64 kB / 476.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1265, allocations: 0 / 476.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1265, allocations: 0 / 476.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.244e-06/0.1265, allocations: 3.938 kB / 476.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1265, allocations: 3.984 kB / 476.3 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.657e-05/0.1266, allocations: 11.94 kB / 476.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-06/0.1266, allocations: 0 / 476.4 MB, free: 6.988 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 7.742e-05/0.1267, allocations: 139.6 kB / 476.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.1267, allocations: 11.84 kB / 476.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.031e-05/0.1267, allocations: 7.078 kB / 476.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1267, allocations: 3.938 kB / 476.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1267, allocations: 3.938 kB / 476.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-06/0.1267, allocations: 0 / 476.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.436e-05/0.1268, allocations: 145.7 kB / 476.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1268, allocations: 7.984 kB / 476.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.42e-07/0.1268, allocations: 0 / 476.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1268, allocations: 3.938 kB / 476.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.1268, allocations: 4 kB / 476.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1268, allocations: 0 / 476.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1268, allocations: 0 / 476.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.237e-05/0.1269, allocations: 94.81 kB / 476.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.109e-05/0.127, allocations: 81.05 kB / 476.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.127, allocations: 3.938 kB / 476.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.127, allocations: 4 kB / 476.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.127, allocations: 4 kB / 476.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.127, allocations: 4.031 kB / 476.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.351e-05/0.1271, allocations: 79.28 kB / 476.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1271, allocations: 0 / 476.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004203/0.1275, allocations: 140 kB / 477.1 MB, free: 6.156 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.0009069/0.1284, allocations: 0.8869 MB / 478 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.828e-05/0.1285, allocations: 63.34 kB / 478 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1285, allocations: 4.062 kB / 478 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.786e-05/0.1285, allocations: 55.41 kB / 478.1 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.1287, allocations: 7.984 kB / 478.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003594/0.129, allocations: 170.5 kB / 478.3 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.1293, allocations: 0.6729 MB / 478.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.1293, allocations: 0 / 478.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.1293, allocations: 11.38 kB / 478.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1293, allocations: 0 / 478.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1742/0.3035, allocations: 5.278 MB / 484.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.195, allocations: 12.56 kB / 484.2 MB, free: 14.96 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