Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.NRXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_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.001131/0.001131, allocations: 109.4 kB / 17.73 MB, free: 5.324 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.001163/0.001163, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.359/1.359, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001309/0.001309, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09046, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002661/0.09316, allocations: 1.497 MB / 376.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.09506, allocations: 0.8942 MB / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.858e-05/0.09518, allocations: 0 / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.09533, allocations: 15.86 kB / 377 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.428e-05/0.09543, allocations: 19.84 kB / 377.1 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.0957, allocations: 39.89 kB / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002154/0.09592, allocations: 147.7 kB / 377.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.09604, allocations: 28.22 kB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006201/0.09667, allocations: 0.5693 MB / 377.8 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.09685, allocations: 71.64 kB / 377.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.959e-05/0.09689, allocations: 12 kB / 377.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.783e-05/0.09693, allocations: 8 kB / 377.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.466e-05/0.09702, allocations: 63.77 kB / 378 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.09716, allocations: 123.1 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.09751, allocations: 358.8 kB / 378.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.09753, allocations: 8 kB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.909e-06/0.09754, allocations: 0 / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.09756, allocations: 3.938 kB / 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.0008347/0.0984, allocations: 0.723 MB / 379.2 MB, free: 428 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.09845, allocations: 15.97 kB / 379.2 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.248e-05/0.09851, allocations: 42.73 kB / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.094e-05/0.09858, allocations: 32.56 kB / 379.3 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.09892, allocations: 278.3 kB / 379.6 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.09895, allocations: 4.375 kB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1908/0.2897, allocations: 7.828 kB / 379.6 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.2901, allocations: 129.5 kB / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2902, allocations: 0 / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.697e-05/0.2902, allocations: 7.156 kB / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.2902, allocations: 1.156 kB / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.2904, allocations: 56.92 kB / 379.8 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008105/0.2912, allocations: 462.5 kB / 380.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.2914, allocations: 98.02 kB / 380.3 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.2915, allocations: 84.33 kB / 380.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.2915, allocations: 1.062 kB / 380.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003877/0.2919, allocations: 203.1 kB / 380.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.665e-06/0.292, allocations: 5.891 kB / 380.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008677/0.2928, allocations: 483.4 kB / 381.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.2929, allocations: 171.1 kB / 381.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007054/0.2936, allocations: 0.516 MB / 381.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.2937, allocations: 29.67 kB / 381.8 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.745e-05/0.2937, allocations: 98.44 kB / 381.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.13e-05/0.2938, allocations: 27.66 kB / 381.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.2939, allocations: 89.52 kB / 382 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.362e-05/0.294, allocations: 320.7 kB / 382.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.2942, allocations: 58.2 kB / 382.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.2943, allocations: 77.36 kB / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.2946, allocations: 348.1 kB / 382.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2947, allocations: 0.5312 kB / 382.8 MB, free: 11.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005522/0.2952, allocations: 385.2 kB / 383.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.004e-05/0.2953, allocations: 128.4 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2953, allocations: 0 / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.2953, allocations: 5.031 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.019e-05/0.2953, allocations: 2.078 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.2954, allocations: 6.375 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.2955, allocations: 10.3 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.369e-05/0.2956, allocations: 58.02 kB / 383.4 MB, free: 11.07 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.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.0002807/0.2959, allocations: 370.7 kB / 383.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.101e-05/0.2959, allocations: 41.91 kB / 383.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.296, allocations: 68.45 kB / 383.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.2961, allocations: 1.812 kB / 383.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2961, allocations: 3.938 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2961, allocations: 2.891 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009567/0.297, allocations: 0.8138 MB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2971, allocations: 0 / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.612e-06/0.2971, allocations: 1.781 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2971, allocations: 3.938 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.2971, allocations: 21.41 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2971, allocations: 0 / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.2971, allocations: 1.578 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006177/0.2978, allocations: 0.5379 MB / 385.2 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.2981, allocations: 249.3 kB / 385.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.67e-05/0.2981, allocations: 16.86 kB / 385.5 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.2982, allocations: 13.5 kB / 385.5 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.2984, allocations: 29.19 kB / 385.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.621e-05/0.2984, allocations: 58.67 kB / 385.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000419/0.2989, allocations: 386.3 kB / 386 MB, free: 9.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.2989, allocations: 0 / 386 MB, free: 9.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000303/0.2992, allocations: 45.91 kB / 386 MB, free: 9.375 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,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.0008441/0.3, allocations: 1.095 MB / 387.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.3005, allocations: 438.9 kB / 387.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3006, allocations: 2 kB / 387.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.3008, allocations: 378.1 kB / 387.9 MB, free: 7.812 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/0.3015, allocations: 120.2 kB / 388 MB, free: 7.781 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.3045, allocations: 2.752 MB / 390.8 MB, free: 5.867 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.3048, allocations: 0.8024 MB / 391.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.888e-05/0.3049, allocations: 9.969 kB / 391.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.3049, allocations: 25.69 kB / 391.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3049, allocations: 0 / 391.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.3343, allocations: 6.134 MB / 397.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.089, allocations: 16.03 kB / 397.8 MB, free: 3.82 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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