Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",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.001872/0.001872, allocations: 111.8 kB / 17.06 MB, free: 6.09 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.002365/0.002365, allocations: 199 kB / 18 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.143/2.143, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 55.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.463/0.4648, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.005677/0.4705, allocations: 1.487 MB / 401.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003099/0.4737, allocations: 0.8538 MB / 402.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.4739, allocations: 4 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.4741, allocations: 7.922 kB / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.4743, allocations: 11.88 kB / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004241/0.4747, allocations: 51.88 kB / 402.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.4751, allocations: 143.7 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.4753, allocations: 36.19 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009565/0.4763, allocations: 0.5771 MB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.4765, allocations: 71.7 kB / 403.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.4766, allocations: 8 kB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.084e-05/0.4766, allocations: 8 kB / 403.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.4768, allocations: 71.69 kB / 403.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001855/0.477, allocations: 115.2 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006592/0.4776, allocations: 378.6 kB / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4777, allocations: 0 / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4777, allocations: 0 / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.914e-05/0.4777, allocations: 0 / 404 MB, free: 4.988 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.001264/0.479, allocations: 0.7127 MB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.479, allocations: 12.03 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/0.4791, allocations: 38.75 kB / 404.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.4793, allocations: 36.55 kB / 404.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.4797, allocations: 278.2 kB / 405.1 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.4797, allocations: 12.38 kB / 405.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.4798, allocations: 4.375 kB / 405.1 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.4803, allocations: 136.8 kB / 405.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.4803, allocations: 0 / 405.3 MB, free: 3.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.4803, allocations: 4 kB / 405.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.4803, allocations: 4 kB / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.4806, allocations: 67.88 kB / 405.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.4816, allocations: 456.6 kB / 405.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.482, allocations: 102.5 kB / 405.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.4822, allocations: 88.83 kB / 406 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.4822, allocations: 3.938 kB / 406 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005912/0.4828, allocations: 206.7 kB / 406.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.164e-06/0.4828, allocations: 0 / 406.2 MB, free: 2.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001205/0.484, allocations: 471.9 kB / 406.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.4842, allocations: 174.2 kB / 406.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.4852, allocations: 0.5168 MB / 407.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.4853, allocations: 29.7 kB / 407.4 MB, free: 1.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.4854, allocations: 101.1 kB / 407.5 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.4855, allocations: 19.72 kB / 407.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.4857, allocations: 89.31 kB / 407.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.4859, allocations: 326.8 kB / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.4861, allocations: 59.97 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.4863, allocations: 69.69 kB / 408 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005202/0.4868, allocations: 347.2 kB / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.4868, allocations: 0 / 408.3 MB, free: 316 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007784/0.4876, allocations: 392.3 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001405/0.4878, allocations: 122.8 kB / 408.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.4878, allocations: 3.938 kB / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.4878, allocations: 32 / 408.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.714e-05/0.4879, allocations: 4 kB / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4879, allocations: 4 kB / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.4881, allocations: 15.92 kB / 408.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.4882, allocations: 56.11 kB / 408.9 MB, free: 15.67 MB / 334.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.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.yy,nRXFERGATE.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.0004717/0.4887, allocations: 374.7 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.4888, allocations: 39.53 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.4889, allocations: 63.14 kB / 409.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4889, allocations: 4 kB / 409.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4889, allocations: 4 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.4889, allocations: 0 / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.49, allocations: 0.8134 MB / 410.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4901, allocations: 4 kB / 410.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.344e-06/0.4901, allocations: 0 / 410.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.4901, allocations: 0 / 410.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.4901, allocations: 12 kB / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.4901, allocations: 0 / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.4901, allocations: 11.91 kB / 410.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008121/0.491, allocations: 0.5369 MB / 410.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000363/0.4913, allocations: 244.5 kB / 411 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.467e-05/0.4914, allocations: 11.98 kB / 411 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.4916, allocations: 12 kB / 411 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.4918, allocations: 31.84 kB / 411.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.4919, allocations: 59.94 kB / 411.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006024/0.4925, allocations: 390.8 kB / 411.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4925, allocations: 4 kB / 411.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.4929, allocations: 44 kB / 411.6 MB, free: 12.86 MB / 334.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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.001186/0.4941, allocations: 1.088 MB / 412.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007091/0.4948, allocations: 445.5 kB / 413.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4948, allocations: 0 / 413.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.4952, allocations: 377.6 kB / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007171/0.4959, allocations: 112.8 kB / 413.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.5003, allocations: 2.753 MB / 416.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005522/0.5008, allocations: 0.8097 MB / 417.1 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.212e-05/0.5009, allocations: 8.656 kB / 417.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.681e-05/0.501, allocations: 31.42 kB / 417.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of SimCode: time 1.262e-06/0.501, allocations: 4 kB / 417.2 MB, free: 6.973 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03853/0.5395, allocations: 6.125 MB / 423.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.43, allocations: 3.125 kB / 423.3 MB, free: 0.8594 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,nRXFERGATE.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,nRXFERGATE.enable,nRXFERGATE.tHL,nRXFERGATE.tLH,nRXFERGATE.x,nRXFERGATE.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