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.001573/0.001573, allocations: 105.3 kB / 16.4 MB, free: 6.457 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.001505/0.001505, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.697/1.697, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2597/0.2597, allocations: 43.53 MB / 314.1 MB, free: 440 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.002053/0.002053, allocations: 73.45 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1494, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00191/0.1513, allocations: 478.9 kB / 499.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004044/0.1554, allocations: 2.322 MB / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.932e-05/0.1554, allocations: 0 / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.793e-05/0.1555, allocations: 0 / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.246e-06/0.1555, allocations: 0 / 0.4901 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002997/0.1585, allocations: 1.137 MB / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.394e-05/0.1586, allocations: 0 / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.701e-05/0.1586, allocations: 0 / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.683e-05/0.1586, allocations: 0 / 0.4912 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.97e-05/0.1587, allocations: 7.984 kB / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.235e-06/0.1587, allocations: 0 / 0.4912 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.1605, allocations: 0.9872 MB / 0.4922 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.1605, allocations: 4 kB / 0.4922 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.364e-05/0.1605, allocations: 0 / 0.4922 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006359/0.1612, allocations: 423.2 kB / 0.4926 GB, free: 6.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1612, allocations: 4 kB / 0.4926 GB, free: 6.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1612, allocations: 0 / 0.4926 GB, free: 6.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.1612, allocations: 0 / 0.4926 GB, free: 6.938 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.0006057/0.1618, allocations: 432.5 kB / 0.493 GB, free: 6.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.1619, allocations: 11.89 kB / 0.493 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.627e-05/0.1619, allocations: 30.75 kB / 0.493 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.551e-05/0.162, allocations: 8.875 kB / 0.4931 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.1621, allocations: 160.4 kB / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.1622, allocations: 384 / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.1622, allocations: 4.375 kB / 0.4932 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.1623, allocations: 33.83 kB / 0.4932 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1623, allocations: 0 / 0.4932 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.1623, allocations: 0 / 0.4932 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.1624, allocations: 3.984 kB / 0.4932 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.1624, allocations: 0 / 0.4932 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000207/0.1626, allocations: 149.7 kB / 0.4934 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.295e-05/0.1627, allocations: 18.52 kB / 0.4934 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.863e-05/0.1627, allocations: 8.859 kB / 0.4934 GB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.1627, allocations: 0 / 0.4934 GB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.219e-05/0.1628, allocations: 64.27 kB / 0.4935 GB, free: 5.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1628, allocations: 3.938 kB / 0.4935 GB, free: 5.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000248/0.1631, allocations: 67.39 kB / 0.4935 GB, free: 5.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.1632, allocations: 81.05 kB / 0.4936 GB, free: 5.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.88e-05/0.1632, allocations: 89.86 kB / 0.4937 GB, free: 5.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.1633, allocations: 29.83 kB / 0.4937 GB, free: 5.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.1633, allocations: 84.08 kB / 0.4938 GB, free: 5.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.1633, allocations: 0 / 0.4938 GB, free: 5.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.1634, allocations: 13.72 kB / 0.4938 GB, free: 5.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.1636, allocations: 314.8 kB / 0.4941 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.527e-05/0.1636, allocations: 4 kB / 0.4941 GB, free: 5.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.025e-06/0.1636, allocations: 4 kB / 0.4941 GB, free: 5.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.61e-05/0.1637, allocations: 60.33 kB / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1637, allocations: 0 / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.401e-05/0.1638, allocations: 63.39 kB / 0.4943 GB, free: 4.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.1638, allocations: 37.64 kB / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.1639, allocations: 0 / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1639, allocations: 3.938 kB / 0.4943 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1639, allocations: 0 / 0.4943 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1639, allocations: 3.984 kB / 0.4943 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.627e-05/0.1639, allocations: 0 / 0.4943 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.1639, allocations: 4 kB / 0.4943 GB, free: 4.902 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 0.0001337/0.1641, allocations: 147.5 kB / 0.4944 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.1641, allocations: 3.938 kB / 0.4944 GB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.044e-05/0.1641, allocations: 11.09 kB / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.1641, allocations: 0 / 0.4945 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1641, allocations: 4 kB / 0.4945 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1641, allocations: 0 / 0.4945 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.1643, allocations: 145.6 kB / 0.4946 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1643, allocations: 0 / 0.4946 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1643, allocations: 0 / 0.4946 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1643, allocations: 3.938 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.1643, allocations: 8 kB / 0.4946 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1643, allocations: 0 / 0.4946 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1643, allocations: 3.984 kB / 0.4946 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001358/0.1645, allocations: 90.78 kB / 0.4947 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.1646, allocations: 81.05 kB / 0.4948 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.1646, allocations: 7.922 kB / 0.4948 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-06/0.1646, allocations: 0 / 0.4948 GB, free: 4.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.952e-05/0.1646, allocations: 4.031 kB / 0.4948 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.1646, allocations: 4 kB / 0.4948 GB, free: 4.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.654e-05/0.1647, allocations: 75.28 kB / 0.4949 GB, free: 4.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1647, allocations: 0 / 0.4949 GB, free: 4.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004557/0.1651, allocations: 143.6 kB / 0.495 GB, free: 4.07 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.001226/0.1664, allocations: 0.8893 MB / 0.4959 GB, free: 3.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001312/0.1665, allocations: 67.34 kB / 0.4959 GB, free: 3.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1665, allocations: 4.062 kB / 0.4959 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.406e-05/0.1666, allocations: 55.41 kB / 0.496 GB, free: 3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.1667, allocations: 0 / 0.496 GB, free: 3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004603/0.1672, allocations: 190 kB / 0.4962 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.1676, allocations: 0.669 MB / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.78e-05/0.1676, allocations: 0 / 0.4968 GB, free: 2.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.777e-05/0.1676, allocations: 7.438 kB / 0.4968 GB, free: 2.07 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1676, allocations: 0 / 0.4968 GB, free: 2.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.1974, allocations: 5.304 MB / 0.502 GB, free: 12.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.173/8.371, allocations: 11.98 kB / 0.502 GB, free: 12.74 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