Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007021/0.0007021, allocations: 95.19 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007868/0.0007868, allocations: 205.5 kB / 18.28 MB, free: 5.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002246, allocations: 8 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08034/0.08058, allocations: 51.51 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001418/0.08203, allocations: 1.233 MB / 360.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.08363, allocations: 0.8968 MB / 361.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.27e-05/0.0837, allocations: 7.938 kB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.429e-05/0.08377, allocations: 0 / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.08385, allocations: 19.84 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.08405, allocations: 35.97 kB / 361.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.08419, allocations: 111.7 kB / 361.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.768e-05/0.08429, allocations: 20.22 kB / 361.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005182/0.08481, allocations: 0.5576 MB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.08493, allocations: 67.77 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.08496, allocations: 0 / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.159e-05/0.08499, allocations: 4 kB / 362.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.229e-05/0.08508, allocations: 63.7 kB / 362.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.08519, allocations: 132.9 kB / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.08548, allocations: 358.6 kB / 362.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.08549, allocations: 0 / 362.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.0855, allocations: 0 / 362.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.08551, allocations: 0 / 362.8 MB, free: 9.684 MB / 302.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.0005442/0.08605, allocations: 0.6648 MB / 363.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.0861, allocations: 12.03 kB / 363.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.08615, allocations: 38.75 kB / 363.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.08622, allocations: 40.47 kB / 363.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.08645, allocations: 274.3 kB / 363.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.08647, allocations: 4.375 kB / 363.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.08651, allocations: 12.38 kB / 363.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.08678, allocations: 133.7 kB / 364 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.0868, allocations: 0 / 364 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.08682, allocations: 4 kB / 364 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.08683, allocations: 0 / 364 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.08697, allocations: 63.97 kB / 364.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.08751, allocations: 456.6 kB / 364.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.08769, allocations: 98.48 kB / 364.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.08784, allocations: 84.94 kB / 364.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.81e-06/0.08786, allocations: 4 kB / 364.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.08814, allocations: 214.7 kB / 364.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.313e-06/0.08815, allocations: 0 / 364.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007141/0.08887, allocations: 475.9 kB / 365.4 MB, free: 6.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.08895, allocations: 162.2 kB / 365.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005601/0.08952, allocations: 0.5168 MB / 366.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.08956, allocations: 29.7 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/0.08962, allocations: 109.1 kB / 366.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.08966, allocations: 35.62 kB / 366.2 MB, free: 6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.08971, allocations: 21.72 kB / 366.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.322e-05/0.08981, allocations: 326.8 kB / 366.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.08994, allocations: 55.97 kB / 366.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.09007, allocations: 77.61 kB / 366.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.09038, allocations: 342.8 kB / 367 MB, free: 5.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.09039, allocations: 4 kB / 367 MB, free: 5.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004866/0.09088, allocations: 392.3 kB / 367.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.323e-05/0.09097, allocations: 129.4 kB / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.09098, allocations: 0 / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.09099, allocations: 0 / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.619e-05/0.09101, allocations: 0 / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.09102, allocations: 4 kB / 367.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.09117, allocations: 15.89 kB / 367.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.129e-05/0.09124, allocations: 59.94 kB / 367.6 MB, free: 4.477 MB / 302.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.0003053/0.09155, allocations: 379.8 kB / 368 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.0916, allocations: 35.62 kB / 368 MB, free: 4.039 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.125e-05/0.0917, allocations: 59.16 kB / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.09171, allocations: 0 / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.09172, allocations: 0 / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.09172, allocations: 0 / 368.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000844/0.09257, allocations: 0.829 MB / 368.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.09259, allocations: 0 / 368.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-06/0.0926, allocations: 7.984 kB / 368.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.09261, allocations: 0 / 368.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.09263, allocations: 12 kB / 368.9 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.09264, allocations: 0 / 368.9 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.09265, allocations: 7.875 kB / 368.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000576/0.09323, allocations: 0.5446 MB / 369.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002655/0.09351, allocations: 244.5 kB / 369.7 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.813e-05/0.09356, allocations: 4 kB / 369.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.0937, allocations: 27.89 kB / 369.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-05/0.09379, allocations: 27.91 kB / 369.8 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.09385, allocations: 59.94 kB / 369.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000419/0.09428, allocations: 382.9 kB / 370.2 MB, free: 1.699 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09428, allocations: 0 / 370.2 MB, free: 1.699 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.09456, allocations: 47.94 kB / 370.3 MB, free: 1.652 MB / 302.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.0008273/0.09539, allocations: 1.092 MB / 371.4 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004357/0.09584, allocations: 433.5 kB / 371.8 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.09586, allocations: 7.938 kB / 371.8 MB, free: 32 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1326/0.2284, allocations: 368.7 kB / 372.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.2291, allocations: 107.8 kB / 372.3 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.232, allocations: 2.807 MB / 375.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.2323, allocations: 0.7971 MB / 375.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.799e-05/0.2323, allocations: 10.58 kB / 375.9 MB, free: 17.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.2323, allocations: 24.92 kB / 375.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2323, allocations: 0 / 375.9 MB, free: 17.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01494/0.2473, allocations: 5.317 MB / 381.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001115/0.2474, allocations: 198.5 kB / 381.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/1.88, allocations: 3.938 kB / 381.4 MB, free: 16.85 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches