Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.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) 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(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",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.001005/0.001005, allocations: 98.64 kB / 17.58 MB, free: 5.418 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.001048/0.001048, allocations: 192 kB / 18.51 MB, free: 4.508 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.361/1.361, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.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.001368/0.001368, allocations: 55.92 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1277, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.00384/0.1316, allocations: 1.486 MB / 328.9 MB, free: 2.883 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.1343, allocations: 0.9052 MB / 329.8 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.773e-05/0.1344, allocations: 0 / 329.8 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1346, allocations: 11.88 kB / 329.8 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.8e-05/0.1347, allocations: 11.86 kB / 329.8 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.135, allocations: 51.88 kB / 329.8 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.1353, allocations: 139.8 kB / 330 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.1355, allocations: 20.23 kB / 330 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008052/0.1363, allocations: 0.5615 MB / 330.6 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.1365, allocations: 83.61 kB / 330.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.1366, allocations: 8 kB / 330.7 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.721e-05/0.1366, allocations: 15.94 kB / 330.7 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.1367, allocations: 59.77 kB / 330.7 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.1369, allocations: 119.1 kB / 330.8 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.1374, allocations: 362.8 kB / 331.2 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.1374, allocations: 0 / 331.2 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1374, allocations: 3.938 kB / 331.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1374, allocations: 4 kB / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009834/0.1384, allocations: 0.723 MB / 331.9 MB, free: 15.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.1385, allocations: 8.031 kB / 331.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.794e-05/0.1385, allocations: 38.75 kB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.461e-05/0.1386, allocations: 36.56 kB / 332 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.139, allocations: 274.3 kB / 332.3 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.139, allocations: 8.375 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.1391, allocations: 8.375 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004208/0.1395, allocations: 133.7 kB / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1395, allocations: 0 / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.1396, allocations: 4 kB / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1396, allocations: 0 / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.1398, allocations: 55.97 kB / 332.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008928/0.1407, allocations: 468.4 kB / 332.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002613/0.141, allocations: 98.55 kB / 333 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.1412, allocations: 84.89 kB / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.1412, allocations: 0 / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000552/0.1418, allocations: 210.6 kB / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 5.75e-06/0.1418, allocations: 3.984 kB / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001187/0.143, allocations: 480 kB / 333.8 MB, free: 13.69 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1431, allocations: 166.2 kB / 334 MB, free: 13.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009708/0.1441, allocations: 0.5168 MB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.1442, allocations: 33.7 kB / 334.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.368e-05/0.1443, allocations: 97.89 kB / 334.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.04e-05/0.1443, allocations: 35.58 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.1445, allocations: 77.42 kB / 334.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1447, allocations: 330.8 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001964/0.1449, allocations: 55.97 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1452, allocations: 81.67 kB / 335.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005118/0.1457, allocations: 339.7 kB / 335.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.1457, allocations: 4 kB / 335.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008562/0.1466, allocations: 380.3 kB / 335.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.1467, allocations: 130.9 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1467, allocations: 3.938 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.1468, allocations: 0 / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.783e-05/0.1468, allocations: 8.031 kB / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1468, allocations: 4.062 kB / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.147, allocations: 19.89 kB / 336 MB, free: 11.26 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.409e-05/0.1471, allocations: 59.88 kB / 336.1 MB, free: 11.2 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0005407/0.1477, allocations: 366.7 kB / 336.5 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.02e-05/0.1478, allocations: 35.62 kB / 336.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000153/0.148, allocations: 63.16 kB / 336.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.148, allocations: 0 / 336.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.148, allocations: 0 / 336.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.148, allocations: 4 kB / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.1495, allocations: 0.8212 MB / 337.4 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1495, allocations: 0 / 337.4 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.422e-05/0.1496, allocations: 7.922 kB / 337.4 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.1496, allocations: 0 / 337.4 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.1496, allocations: 12 kB / 337.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1496, allocations: 0 / 337.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1496, allocations: 3.938 kB / 337.4 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009389/0.1506, allocations: 0.5369 MB / 337.9 MB, free: 9.199 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004326/0.151, allocations: 244.4 kB / 338.2 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.12e-05/0.1511, allocations: 8 kB / 338.2 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.1514, allocations: 11.98 kB / 338.2 MB, free: 8.922 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.1515, allocations: 31.91 kB / 338.2 MB, free: 8.891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.013e-05/0.1516, allocations: 55.94 kB / 338.3 MB, free: 8.836 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006869/0.1523, allocations: 386.9 kB / 338.7 MB, free: 8.457 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1523, allocations: 0 / 338.7 MB, free: 8.457 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005357/0.1529, allocations: 48 kB / 338.7 MB, free: 8.41 MB / 286.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001498/0.1544, allocations: 1.105 MB / 339.8 MB, free: 7.254 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008287/0.1552, allocations: 437.5 kB / 340.2 MB, free: 6.777 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1553, allocations: 0 / 340.2 MB, free: 6.777 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004034/0.1557, allocations: 377.6 kB / 340.6 MB, free: 6.359 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006309/0.1563, allocations: 125.8 kB / 340.7 MB, free: 6.238 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.1599, allocations: 2.737 MB / 343.5 MB, free: 3.391 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005915/0.1605, allocations: 0.8098 MB / 344.3 MB, free: 2.551 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.197e-05/0.1606, allocations: 8.656 kB / 344.3 MB, free: 2.543 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.888e-05/0.1607, allocations: 27.42 kB / 344.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1607, allocations: 0 / 344.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02668/0.1874, allocations: 5.998 MB / 350.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.174, allocations: 15.8 kB / 350.3 MB, free: 12.34 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches