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.001067/0.001067, allocations: 110.5 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.001102/0.001102, allocations: 187 kB / 18.66 MB, free: 4.395 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.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00131/0.00131, allocations: 51.94 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09409, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002711/0.09683, allocations: 1.501 MB / 376.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.0988, allocations: 0.8942 MB / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.607e-05/0.09894, allocations: 4 kB / 377 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.09906, allocations: 11.86 kB / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.09917, allocations: 15.86 kB / 377.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.09947, allocations: 47.88 kB / 377.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002486/0.09972, allocations: 143.7 kB / 377.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.09984, allocations: 20.23 kB / 377.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006247/0.1005, allocations: 0.5693 MB / 377.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.1007, allocations: 75.64 kB / 377.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.1007, allocations: 8 kB / 377.9 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.76e-05/0.1007, allocations: 8 kB / 377.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.892e-05/0.1008, allocations: 67.75 kB / 378 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.101, allocations: 119.1 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003721/0.1014, allocations: 370.8 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1014, allocations: 4 kB / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1014, allocations: 0 / 378.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.1014, allocations: 0 / 378.5 MB, free: 1.219 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.00086/0.1023, allocations: 0.719 MB / 379.2 MB, free: 436 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1023, allocations: 12.03 kB / 379.2 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.98e-05/0.1024, allocations: 42.73 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.096e-05/0.1025, allocations: 36.56 kB / 379.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.1028, allocations: 274.3 kB / 379.6 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.1028, allocations: 8.375 kB / 379.6 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.1028, allocations: 8.375 kB / 379.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.3156, allocations: 130.4 kB / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3157, allocations: 0 / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.3157, allocations: 5.016 kB / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3157, allocations: 0 / 379.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.3159, allocations: 58.33 kB / 379.8 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007392/0.3166, allocations: 460.9 kB / 380.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.3168, allocations: 103.1 kB / 380.3 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.317, allocations: 84.98 kB / 380.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.317, allocations: 1.375 kB / 380.4 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.3174, allocations: 203.3 kB / 380.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.204e-06/0.3174, allocations: 0 / 380.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007822/0.3182, allocations: 488.9 kB / 381.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/0.3182, allocations: 171.1 kB / 381.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006515/0.3189, allocations: 0.5168 MB / 381.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.3189, allocations: 33.52 kB / 381.8 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.319, allocations: 95.59 kB / 381.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.565e-05/0.3191, allocations: 30.06 kB / 381.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.3192, allocations: 87.5 kB / 382 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.584e-05/0.3193, allocations: 324.7 kB / 382.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.3195, allocations: 57.02 kB / 382.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.3196, allocations: 73.84 kB / 382.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.3199, allocations: 343.3 kB / 382.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.32, allocations: 0.875 kB / 382.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005854/0.3205, allocations: 387.3 kB / 383.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.159e-05/0.3206, allocations: 128.2 kB / 383.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3206, allocations: 1.188 kB / 383.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.3207, allocations: 5.359 kB / 383.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.511e-05/0.3207, allocations: 0.9688 kB / 383.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.3207, allocations: 9.188 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.3209, allocations: 11.25 kB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.723e-05/0.321, allocations: 62.8 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.0002824/0.3212, allocations: 364.2 kB / 383.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.3213, allocations: 39.66 kB / 383.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.344e-05/0.3214, allocations: 65.05 kB / 383.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3214, allocations: 4.781 kB / 383.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3214, allocations: 3.938 kB / 383.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3214, allocations: 0.8906 kB / 383.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.3225, allocations: 0.8224 MB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3225, allocations: 2.547 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-06/0.3226, allocations: 0 / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3226, allocations: 1.375 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.3226, allocations: 16.66 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3226, allocations: 3.688 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3226, allocations: 1.125 kB / 384.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007005/0.3233, allocations: 0.532 MB / 385.2 MB, free: 9.789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.3237, allocations: 246.2 kB / 385.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.759e-05/0.3238, allocations: 16.16 kB / 385.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.3239, allocations: 9.359 kB / 385.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.324, allocations: 26.55 kB / 385.5 MB, free: 9.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-05/0.3241, allocations: 65.17 kB / 385.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004541/0.3246, allocations: 386.3 kB / 386 MB, free: 9.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3246, allocations: 0 / 386 MB, free: 9.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.3249, allocations: 46.41 kB / 386 MB, free: 9.383 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.0008187/0.3257, allocations: 1.103 MB / 387.1 MB, free: 8.492 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004629/0.3262, allocations: 435.4 kB / 387.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3262, allocations: 0 / 387.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/0.3265, allocations: 379.2 kB / 387.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006448/0.3271, allocations: 122.5 kB / 388 MB, free: 7.785 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.3309, allocations: 2.751 MB / 390.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.3313, allocations: 0.8109 MB / 391.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.098e-05/0.3314, allocations: 8.641 kB / 391.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.3314, allocations: 26.94 kB / 391.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of SimCode: time 1.884e-06/0.3314, allocations: 0 / 391.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.3577, allocations: 6.129 MB / 397.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/8.107, allocations: 12.38 kB / 397.8 MB, free: 3.824 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