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.001443/0.001443, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001584/0.001584, allocations: 192 kB / 18.66 MB, free: 4.445 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.462/1.462, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002163/0.002163, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1364, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003959/0.1405, allocations: 1.505 MB / 376.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003089/0.1436, allocations: 0.8942 MB / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.1437, allocations: 7.938 kB / 377 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.1439, allocations: 7.922 kB / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1441, allocations: 15.86 kB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.1444, allocations: 47.88 kB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.1447, allocations: 147.7 kB / 377.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1449, allocations: 12.23 kB / 377.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009184/0.1458, allocations: 0.5732 MB / 377.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.146, allocations: 79.62 kB / 377.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.1461, allocations: 8 kB / 377.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.456e-05/0.1462, allocations: 8 kB / 377.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.1463, allocations: 63.77 kB / 378 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.1465, allocations: 123.1 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005217/0.1471, allocations: 370.7 kB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.1471, allocations: 3.984 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1471, allocations: 0 / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.1471, allocations: 0 / 378.5 MB, free: 1.215 MB / 318.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.001134/0.1483, allocations: 0.7152 MB / 379.2 MB, free: 436 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.1483, allocations: 12.03 kB / 379.2 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.78e-05/0.1484, allocations: 42.73 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1485, allocations: 36.56 kB / 379.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004284/0.149, allocations: 274.3 kB / 379.6 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.149, allocations: 12.38 kB / 379.6 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.409e-05/0.1491, allocations: 4.375 kB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.191/0.3401, allocations: 127.7 kB / 379.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.3402, allocations: 0 / 379.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.3402, allocations: 3.969 kB / 379.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3403, allocations: 1.188 kB / 379.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.3404, allocations: 60.42 kB / 379.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008673/0.3413, allocations: 461.1 kB / 380.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.3415, allocations: 99.7 kB / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3417, allocations: 84.02 kB / 380.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.3417, allocations: 1.625 kB / 380.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004396/0.3422, allocations: 210.5 kB / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.385e-06/0.3422, allocations: 0 / 380.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008752/0.3431, allocations: 483.3 kB / 381.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.598e-05/0.3432, allocations: 169.5 kB / 381.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.3442, allocations: 0.5161 MB / 381.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.3443, allocations: 29.45 kB / 381.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.23e-05/0.3444, allocations: 102.4 kB / 381.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.3444, allocations: 27.73 kB / 381.9 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.3447, allocations: 89.67 kB / 382 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.627e-05/0.3448, allocations: 321.4 kB / 382.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001686/0.3449, allocations: 57.22 kB / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.3451, allocations: 76.11 kB / 382.4 MB, free: 11.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003529/0.3455, allocations: 346.1 kB / 382.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3455, allocations: 0.5312 kB / 382.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006082/0.3461, allocations: 386.7 kB / 383.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.575e-05/0.3462, allocations: 123.6 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3462, allocations: 1.406 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3462, allocations: 3.469 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.491e-05/0.3462, allocations: 5.969 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3462, allocations: 2.016 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.3464, allocations: 16.11 kB / 383.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.3465, allocations: 62.2 kB / 383.4 MB, free: 11.05 MB / 318.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.000326/0.3468, allocations: 357.4 kB / 383.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.987e-05/0.3469, allocations: 39.03 kB / 383.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.347, allocations: 72.94 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.347, allocations: 2.812 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.347, allocations: 0.5 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.347, allocations: 6.188 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009833/0.348, allocations: 0.8168 MB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.348, allocations: 3.172 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.065e-06/0.3481, allocations: 1.5 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.3481, allocations: 0.6562 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.874e-05/0.3481, allocations: 19.47 kB / 384.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3481, allocations: 0 / 384.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3481, allocations: 0 / 384.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007621/0.3489, allocations: 0.5396 MB / 385.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003922/0.3493, allocations: 250.6 kB / 385.5 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.811e-05/0.3494, allocations: 11.19 kB / 385.5 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.3495, allocations: 12.86 kB / 385.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.3497, allocations: 25.52 kB / 385.5 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-05/0.3498, allocations: 61.89 kB / 385.6 MB, free: 9.578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000509/0.3503, allocations: 388 kB / 386 MB, free: 9.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3503, allocations: 0 / 386 MB, free: 9.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003386/0.3506, allocations: 41.16 kB / 386 MB, free: 9.371 MB / 318.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.001026/0.3517, allocations: 1.101 MB / 387.1 MB, free: 8.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005895/0.3523, allocations: 435.9 kB / 387.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3523, allocations: 0 / 387.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003214/0.3526, allocations: 385.8 kB / 387.9 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007399/0.3534, allocations: 121.3 kB / 388 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003789/0.3572, allocations: 2.754 MB / 390.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.3576, allocations: 0.8023 MB / 391.6 MB, free: 5.121 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.233e-05/0.3577, allocations: 9.672 kB / 391.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.3577, allocations: 30.88 kB / 391.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3578, allocations: 0 / 391.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.3862, allocations: 6.134 MB / 397.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/8.066, allocations: 8.516 kB / 397.8 MB, free: 3.809 MB / 318.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) "" Variables in the reference:time,nXFERGATE.y Variables in the result:e_table.n,e_table.t[1],e_table.t[2],e_table.t[3],e_table.x[1],e_table.x[2],e_table.x[3],e_table.y,e_table.y0,nXFERGATE.enable,nXFERGATE.tHL,nXFERGATE.tLH,nXFERGATE.x,nXFERGATE.y,time,x_table.n,x_table.t[1],x_table.t[2],x_table.x[1],x_table.x[2],x_table.y,x_table.y0