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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004586/0.004586, allocations: 166.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8865/0.8865, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.263e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002587/0.00261, allocations: 1.462 MB / 299.9 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.00454, allocations: 0.8475 MB / 300.7 MB, free: 1.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.002e-05/0.00461, allocations: 3.938 kB / 300.8 MB, free: 1.176 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.004715, allocations: 11.86 kB / 300.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.187e-05/0.004797, allocations: 19.86 kB / 300.8 MB, free: 1.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/0.005068, allocations: 59.81 kB / 300.8 MB, free: 1.086 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.005248, allocations: 127.7 kB / 301 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.005352, allocations: 12.22 kB / 301 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004741/0.005826, allocations: 0.5966 MB / 301.6 MB, free: 356 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.005942, allocations: 63.81 kB / 301.6 MB, free: 292 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.005973, allocations: 8 kB / 301.6 MB, free: 284 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.053e-05/0.005994, allocations: 12 kB / 301.7 MB, free: 272 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.45e-05/0.006068, allocations: 67.66 kB / 301.7 MB, free: 204 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.086e-05/0.006139, allocations: 55.78 kB / 301.8 MB, free: 148 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1223/0.1285, allocations: 370.5 kB / 302.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1285, allocations: 2.078 kB / 302.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1285, allocations: 0.8125 kB / 302.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1285, allocations: 1.5 kB / 302.1 MB, free: 13.89 MB / 282.7 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.0007055/0.1292, allocations: 0.651 MB / 302.8 MB, free: 13.37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1292, allocations: 13.89 kB / 302.8 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.49e-05/0.1293, allocations: 44.42 kB / 302.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.695e-05/0.1293, allocations: 38.77 kB / 302.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001987/0.1295, allocations: 218.3 kB / 303.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.1296, allocations: 11.77 kB / 303.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.1296, allocations: 7 kB / 303.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.1299, allocations: 247.6 kB / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.1299, allocations: 192 / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.1299, allocations: 4.328 kB / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1299, allocations: 6.812 kB / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.13, allocations: 179.4 kB / 303.5 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.1305, allocations: 413.8 kB / 304 MB, free: 12.58 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.1307, allocations: 196.5 kB / 304.1 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.1308, allocations: 184.1 kB / 304.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.298e-05/0.1308, allocations: 1.781 kB / 304.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.1312, allocations: 333 kB / 304.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.345e-06/0.1312, allocations: 0 / 304.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006073/0.1318, allocations: 0.7093 MB / 305.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.1319, allocations: 166.8 kB / 305.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004828/0.1323, allocations: 0.5121 MB / 306 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.1324, allocations: 30.11 kB / 306.1 MB, free: 11.22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/0.1324, allocations: 106.9 kB / 306.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.1324, allocations: 30.42 kB / 306.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-05/0.1325, allocations: 83.94 kB / 306.3 MB, free: 11.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.668e-05/0.1326, allocations: 325.3 kB / 306.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.1327, allocations: 175.2 kB / 306.8 MB, free: 10.65 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.1328, allocations: 198.7 kB / 307 MB, free: 10.51 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.133, allocations: 354.5 kB / 307.3 MB, free: 10.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.133, allocations: 5.656 kB / 307.3 MB, free: 10.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004011/0.1334, allocations: 0.5075 MB / 307.8 MB, free: 9.867 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.365e-05/0.1334, allocations: 126.7 kB / 307.9 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1334, allocations: 1.75 kB / 307.9 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.1335, allocations: 3.438 kB / 308 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.669e-05/0.1335, allocations: 4.375 kB / 308 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1335, allocations: 1.219 kB / 308 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.1337, allocations: 10.62 kB / 308 MB, free: 9.738 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-05/0.1337, allocations: 62.97 kB / 308 MB, free: 9.73 MB / 282.7 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.0002665/0.134, allocations: 361.8 kB / 308.4 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.131e-05/0.134, allocations: 43.77 kB / 308.4 MB, free: 9.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-05/0.1341, allocations: 68.72 kB / 308.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1341, allocations: 0 / 308.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1341, allocations: 0.9688 kB / 308.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1341, allocations: 0.5625 kB / 308.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007416/0.1349, allocations: 0.8895 MB / 309.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1349, allocations: 1.953 kB / 309.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.128e-05/0.1349, allocations: 0 / 309.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1349, allocations: 1.344 kB / 309.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.1349, allocations: 13.36 kB / 309.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.1349, allocations: 4.031 kB / 309.4 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1349, allocations: 1.953 kB / 309.4 MB, free: 8.695 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004705/0.1354, allocations: 0.6798 MB / 310.1 MB, free: 8.195 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.1357, allocations: 212.1 kB / 310.3 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.198e-05/0.1357, allocations: 11.78 kB / 310.3 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.554e-05/0.1358, allocations: 9.953 kB / 310.3 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.313e-05/0.1359, allocations: 26.61 kB / 310.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.116e-05/0.1359, allocations: 60.78 kB / 310.4 MB, free: 8.062 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003272/0.1363, allocations: 388 kB / 310.8 MB, free: 7.859 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1363, allocations: 1.406 kB / 310.8 MB, free: 7.859 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.1365, allocations: 44.97 kB / 310.8 MB, free: 7.855 MB / 282.7 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.0006343/0.1371, allocations: 1.219 MB / 312 MB, free: 6.836 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004387/0.1376, allocations: 0.6076 MB / 312.6 MB, free: 6.266 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1376, allocations: 1.25 kB / 312.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.1378, allocations: 425.9 kB / 313.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/0.1383, allocations: 116 kB / 313.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.1412, allocations: 3.37 MB / 316.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002935/0.1415, allocations: 190.3 kB / 316.7 MB, free: 3.109 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1416, allocations: 10.78 kB / 316.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.828e-05/0.1416, allocations: 31.25 kB / 316.8 MB, free: 3.082 MB / 282.7 MB Notification: Performance of SimCode: time 2.324e-06/0.1416, allocations: 0 / 316.8 MB, free: 3.082 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.1643, allocations: 7.073 MB / 323.8 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.517/7.681, allocations: 5 kB / 323.9 MB, free: 0.6172 MB / 282.7 MB " [Timeout remaining time 652] (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 --stepSize=0.0023933 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.294201048091054]