Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 112.9 kB / 17.08 MB, free: 5.965 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.001888/0.001888, allocations: 198.9 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2007/0.2007, allocations: 43.52 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 73.55 kB / 442.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1181, allocations: 57.78 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001839/0.12, allocations: 489.8 kB / 0.489 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003679/0.1237, allocations: 2.32 MB / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.987e-05/0.1237, allocations: 0 / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.1238, allocations: 0 / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.842e-06/0.1238, allocations: 0 / 0.4912 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002852/0.1267, allocations: 1.133 MB / 0.4923 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.627e-05/0.1267, allocations: 4 kB / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.044e-05/0.1268, allocations: 0 / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.338e-05/0.1268, allocations: 0 / 0.4923 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.984e-05/0.1268, allocations: 3.984 kB / 0.4924 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.06e-06/0.1268, allocations: 0 / 0.4924 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001427/0.1282, allocations: 0.995 MB / 0.4933 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.184e-06/0.1283, allocations: 0 / 0.4933 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.239e-05/0.1283, allocations: 0 / 0.4933 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000526/0.1288, allocations: 423.4 kB / 0.4937 GB, free: 6.465 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1288, allocations: 0 / 0.4937 GB, free: 6.465 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1288, allocations: 0 / 0.4937 GB, free: 6.465 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.1289, allocations: 0 / 0.4937 GB, free: 6.465 MB / 382.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.0004231/0.1293, allocations: 433.2 kB / 0.4941 GB, free: 5.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.1293, allocations: 11.89 kB / 0.4942 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.1294, allocations: 8.922 kB / 0.4942 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.089e-05/0.1295, allocations: 160.4 kB / 0.4943 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.1295, allocations: 384 / 0.4943 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.1295, allocations: 4.375 kB / 0.4943 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.696e-05/0.1296, allocations: 33.95 kB / 0.4943 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.1296, allocations: 0 / 0.4943 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.1296, allocations: 0 / 0.4943 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1296, allocations: 0 / 0.4943 GB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.765e-05/0.1296, allocations: 4 kB / 0.4944 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.1298, allocations: 157.6 kB / 0.4945 GB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.003e-05/0.1298, allocations: 18.61 kB / 0.4945 GB, free: 5.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.222e-05/0.1298, allocations: 8.797 kB / 0.4945 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.1299, allocations: 3.938 kB / 0.4945 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.1299, allocations: 60.2 kB / 0.4946 GB, free: 5.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1299, allocations: 0 / 0.4946 GB, free: 5.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001695/0.1301, allocations: 67.55 kB / 0.4947 GB, free: 5.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.1301, allocations: 81.14 kB / 0.4947 GB, free: 5.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.844e-05/0.1302, allocations: 93.86 kB / 0.4948 GB, free: 5.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.1302, allocations: 25.7 kB / 0.4948 GB, free: 5.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.473e-05/0.1302, allocations: 80.14 kB / 0.4949 GB, free: 5.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.1303, allocations: 0 / 0.4949 GB, free: 5.016 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.548e-05/0.1303, allocations: 9.719 kB / 0.4949 GB, free: 5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.1304, allocations: 318.8 kB / 0.4952 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.787e-06/0.1304, allocations: 3.938 kB / 0.4952 GB, free: 4.676 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.426e-06/0.1304, allocations: 11.92 kB / 0.4953 GB, free: 4.664 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.34e-05/0.1305, allocations: 60.27 kB / 0.4953 GB, free: 4.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1305, allocations: 0 / 0.4953 GB, free: 4.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.088e-05/0.1306, allocations: 59.41 kB / 0.4954 GB, free: 4.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.1306, allocations: 33.64 kB / 0.4954 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.1306, allocations: 0 / 0.4954 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1306, allocations: 3.984 kB / 0.4954 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1306, allocations: 0 / 0.4954 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1306, allocations: 8.094 kB / 0.4954 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.1307, allocations: 0 / 0.4954 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.1307, allocations: 4 kB / 0.4954 GB, free: 4.465 MB / 382.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.059e-05/0.1308, allocations: 139.5 kB / 0.4955 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.1308, allocations: 3.938 kB / 0.4955 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.239e-05/0.1308, allocations: 3.125 kB / 0.4956 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1308, allocations: 7.938 kB / 0.4956 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1308, allocations: 0 / 0.4956 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1308, allocations: 0 / 0.4956 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.653e-05/0.1309, allocations: 153.7 kB / 0.4957 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1309, allocations: 0 / 0.4957 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-07/0.1309, allocations: 0 / 0.4957 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.1309, allocations: 3.938 kB / 0.4957 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.1309, allocations: 0 / 0.4957 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.131, allocations: 0 / 0.4957 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.131, allocations: 7.922 kB / 0.4957 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.504e-05/0.131, allocations: 90.83 kB / 0.4958 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.1311, allocations: 81.14 kB / 0.4959 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.1311, allocations: 3.938 kB / 0.4959 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.445e-06/0.1311, allocations: 4 kB / 0.4959 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.1311, allocations: 0 / 0.4959 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.1312, allocations: 4 kB / 0.4959 GB, free: 3.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.7e-05/0.1312, allocations: 79.27 kB / 0.496 GB, free: 3.781 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1312, allocations: 0 / 0.496 GB, free: 3.781 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000398/0.1316, allocations: 136 kB / 0.4961 GB, free: 3.648 MB / 382.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.0006713/0.1323, allocations: 373.2 kB / 0.4965 GB, free: 3.277 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.1324, allocations: 63.39 kB / 0.4965 GB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1324, allocations: 64 / 0.4965 GB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.795e-05/0.1324, allocations: 59.41 kB / 0.4966 GB, free: 3.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.1326, allocations: 4 kB / 0.4966 GB, free: 3.129 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001882/0.1328, allocations: 114.6 kB / 0.4967 GB, free: 2.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.133, allocations: 0.669 MB / 0.4973 GB, free: 2.289 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.057e-05/0.133, allocations: 7.438 kB / 0.4973 GB, free: 2.281 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.133, allocations: 0 / 0.4973 GB, free: 2.281 MB / 382.1 MB Notification: Performance of Templates: time 0.006018/0.1391, allocations: 3.624 MB / 0.5009 GB, free: 14.65 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches