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: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_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.001508/0.001513, allocations: 102.7 kB / 16.4 MB, free: 6.473 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.001815/0.001814, allocations: 189.5 kB / 17.34 MB, free: 5.754 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.514/1.514, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2212/0.2212, allocations: 43.53 MB / 314.1 MB, free: 464 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.001619/0.001619, allocations: 63.91 kB / 441.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1257, allocations: 57.79 MB / 499.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001836/0.1275, allocations: 478.8 kB / 499.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003663/0.1312, allocations: 2.322 MB / 0.4901 GB, free: 9.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.196e-05/0.1313, allocations: 4 kB / 0.4901 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.642e-05/0.1314, allocations: 0 / 0.4901 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.365e-06/0.1314, allocations: 4 kB / 0.4901 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003314/0.1347, allocations: 1.121 MB / 0.4912 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.879e-05/0.1348, allocations: 3.938 kB / 0.4912 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.1349, allocations: 0 / 0.4912 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.1349, allocations: 8 kB / 0.4912 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.52e-05/0.1349, allocations: 3.984 kB / 0.4912 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.1349, allocations: 0 / 0.4912 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001853/0.1368, allocations: 0.9873 MB / 0.4922 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.1368, allocations: 0 / 0.4922 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.379e-05/0.1369, allocations: 0 / 0.4922 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009414/0.1378, allocations: 431.5 kB / 0.4926 GB, free: 6.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1378, allocations: 0 / 0.4926 GB, free: 6.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1378, allocations: 0 / 0.4926 GB, free: 6.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1378, allocations: 4 kB / 0.4926 GB, free: 6.977 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.0005745/0.1384, allocations: 432.6 kB / 0.493 GB, free: 6.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.1385, allocations: 11.89 kB / 0.493 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.1385, allocations: 38.73 kB / 0.493 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.1386, allocations: 0.9375 kB / 0.493 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.1387, allocations: 160.4 kB / 0.4932 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.1387, allocations: 384 / 0.4932 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-06/0.1387, allocations: 384 / 0.4932 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.1389, allocations: 37.77 kB / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.1389, allocations: 4 kB / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.1389, allocations: 0 / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1389, allocations: 0 / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.242e-05/0.1389, allocations: 0 / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.1391, allocations: 153.7 kB / 0.4934 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.549e-05/0.1391, allocations: 14.58 kB / 0.4934 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.715e-05/0.1392, allocations: 4.953 kB / 0.4934 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.966e-06/0.1392, allocations: 4 kB / 0.4934 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/0.1393, allocations: 72.08 kB / 0.4935 GB, free: 5.883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.1393, allocations: 0 / 0.4935 GB, free: 5.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002019/0.1395, allocations: 71.33 kB / 0.4935 GB, free: 5.801 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.1395, allocations: 77.11 kB / 0.4936 GB, free: 5.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.24e-05/0.1396, allocations: 89.86 kB / 0.4937 GB, free: 5.609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.1396, allocations: 25.7 kB / 0.4937 GB, free: 5.578 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.944e-05/0.1397, allocations: 80.14 kB / 0.4938 GB, free: 5.496 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.1397, allocations: 8.125 kB / 0.4938 GB, free: 5.488 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.1397, allocations: 9.719 kB / 0.4938 GB, free: 5.473 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1399, allocations: 318.8 kB / 0.4941 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.369e-05/0.1399, allocations: 4 kB / 0.4941 GB, free: 5.148 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.024e-06/0.1399, allocations: 0 / 0.4941 GB, free: 5.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.417e-05/0.14, allocations: 64.2 kB / 0.4942 GB, free: 5.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.14, allocations: 0 / 0.4942 GB, free: 5.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.523e-05/0.14, allocations: 59.48 kB / 0.4943 GB, free: 5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/0.1401, allocations: 49.62 kB / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1401, allocations: 0 / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.1401, allocations: 0 / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.1401, allocations: 0 / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1402, allocations: 0 / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.1402, allocations: 0 / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1402, allocations: 4 kB / 0.4943 GB, free: 4.941 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.913e-05/0.1403, allocations: 135.5 kB / 0.4944 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.1403, allocations: 3.938 kB / 0.4944 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.556e-05/0.1403, allocations: 11.12 kB / 0.4944 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1403, allocations: 0 / 0.4944 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.1403, allocations: 0 / 0.4944 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1404, allocations: 3.984 kB / 0.4945 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1405, allocations: 145.7 kB / 0.4946 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1405, allocations: 0 / 0.4946 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.1405, allocations: 3.938 kB / 0.4946 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1405, allocations: 7.938 kB / 0.4946 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-06/0.1405, allocations: 0 / 0.4946 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1405, allocations: 0 / 0.4946 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1405, allocations: 0 / 0.4946 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001113/0.1406, allocations: 94.83 kB / 0.4947 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.1407, allocations: 81.05 kB / 0.4948 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.1407, allocations: 0 / 0.4948 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.1407, allocations: 3.938 kB / 0.4948 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.1407, allocations: 11.98 kB / 0.4948 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.1407, allocations: 3.984 kB / 0.4948 GB, free: 4.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.643e-05/0.1408, allocations: 79.31 kB / 0.4949 GB, free: 4.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1408, allocations: 3.938 kB / 0.4949 GB, free: 4.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.1413, allocations: 136 kB / 0.495 GB, free: 4.117 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.001054/0.1423, allocations: 0.8896 MB / 0.4959 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001008/0.1425, allocations: 59.39 kB / 0.4959 GB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1425, allocations: 0 / 0.4959 GB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.03e-05/0.1425, allocations: 55.41 kB / 0.496 GB, free: 3.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.1426, allocations: 4.125 kB / 0.496 GB, free: 3.055 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004317/0.1431, allocations: 198.3 kB / 0.4962 GB, free: 2.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.1433, allocations: 0.669 MB / 0.4968 GB, free: 2.125 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.402e-06/0.1434, allocations: 0 / 0.4968 GB, free: 2.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.1434, allocations: 11.44 kB / 0.4968 GB, free: 2.113 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1434, allocations: 0 / 0.4968 GB, free: 2.113 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.1665, allocations: 5.306 MB / 0.502 GB, free: 12.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.254, allocations: 15.97 kB / 0.502 GB, free: 12.78 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations.fmu > 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