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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009141/0.0009141, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00693/0.00693, allocations: 161.6 kB / 24.69 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9245/0.9245, allocations: 158.6 MB / 186.5 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.123e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001941/0.001962, allocations: 1.455 MB / 299.9 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.003295, allocations: 0.8513 MB / 300.7 MB, free: 1.191 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.345e-05/0.003349, allocations: 4 kB / 300.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.683e-05/0.003435, allocations: 11.86 kB / 300.8 MB, free: 1.176 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.137e-05/0.003507, allocations: 23.84 kB / 300.8 MB, free: 1.152 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000235/0.003742, allocations: 51.83 kB / 300.8 MB, free: 1.102 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.003908, allocations: 131.7 kB / 301 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.039e-05/0.003998, allocations: 16.22 kB / 301 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004361/0.004434, allocations: 0.5889 MB / 301.6 MB, free: 372 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.00454, allocations: 67.81 kB / 301.6 MB, free: 304 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.00457, allocations: 8 kB / 301.6 MB, free: 296 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.211e-05/0.004592, allocations: 12 kB / 301.7 MB, free: 284 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-05/0.004661, allocations: 71.64 kB / 301.7 MB, free: 212 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.386e-05/0.004724, allocations: 51.8 kB / 301.8 MB, free: 160 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.139/0.1437, allocations: 372.7 kB / 302.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1437, allocations: 3.266 kB / 302.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1437, allocations: 0.8125 kB / 302.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.1437, allocations: 0 / 302.1 MB, free: 13.88 MB / 282.7 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.0005935/0.1443, allocations: 0.6522 MB / 302.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1444, allocations: 13.58 kB / 302.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.26e-05/0.1444, allocations: 43.8 kB / 302.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.675e-05/0.1445, allocations: 41.23 kB / 302.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.1447, allocations: 218.2 kB / 303.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1447, allocations: 5.547 kB / 303.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.1447, allocations: 7.594 kB / 303.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.145, allocations: 247.4 kB / 303.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.145, allocations: 0.7969 kB / 303.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.145, allocations: 4.188 kB / 303.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.145, allocations: 6.094 kB / 303.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.1451, allocations: 179.8 kB / 303.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005009/0.1456, allocations: 413.7 kB / 303.9 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.1458, allocations: 198.9 kB / 304.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.1459, allocations: 186.3 kB / 304.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.1459, allocations: 1.281 kB / 304.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003117/0.1462, allocations: 328.2 kB / 304.6 MB, free: 12.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.823e-06/0.1462, allocations: 5.719 kB / 304.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005989/0.1468, allocations: 0.7034 MB / 305.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.1468, allocations: 170.6 kB / 305.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.1473, allocations: 0.5094 MB / 306 MB, free: 11.23 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.1473, allocations: 33.3 kB / 306.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.1473, allocations: 105.1 kB / 306.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.874e-05/0.1474, allocations: 32.12 kB / 306.2 MB, free: 11.1 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.277e-05/0.1475, allocations: 82.77 kB / 306.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.503e-05/0.1475, allocations: 324.6 kB / 306.6 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1476, allocations: 176.1 kB / 306.8 MB, free: 10.63 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.1477, allocations: 199.3 kB / 307 MB, free: 10.49 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.1479, allocations: 352.1 kB / 307.3 MB, free: 10.22 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1479, allocations: 3.938 kB / 307.3 MB, free: 10.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003624/0.1483, allocations: 0.508 MB / 307.8 MB, free: 9.863 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.083e-05/0.1483, allocations: 128.1 kB / 307.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1483, allocations: 0.7031 kB / 307.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1483, allocations: 1.5 kB / 307.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.119e-05/0.1484, allocations: 2.344 kB / 307.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1484, allocations: 0 / 307.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1485, allocations: 14.08 kB / 308 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.484e-05/0.1485, allocations: 61.98 kB / 308 MB, free: 9.723 MB / 282.7 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.000224/0.1487, allocations: 368.3 kB / 308.4 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.1488, allocations: 43.92 kB / 308.4 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.041e-05/0.1488, allocations: 64.62 kB / 308.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1488, allocations: 1.25 kB / 308.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.1489, allocations: 1.844 kB / 308.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.1489, allocations: 0 / 308.5 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006228/0.1495, allocations: 0.8882 MB / 309.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1495, allocations: 0.5156 kB / 309.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.864e-06/0.1495, allocations: 4.375 kB / 309.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1495, allocations: 0 / 309.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.1495, allocations: 14.52 kB / 309.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1495, allocations: 4 kB / 309.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1495, allocations: 8.125 kB / 309.4 MB, free: 8.684 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.1499, allocations: 0.6738 MB / 310.1 MB, free: 8.188 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.1502, allocations: 210.5 kB / 310.3 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.661e-05/0.1502, allocations: 12.97 kB / 310.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-05/0.1503, allocations: 8.953 kB / 310.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/0.1504, allocations: 27.62 kB / 310.3 MB, free: 8.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.1504, allocations: 58.34 kB / 310.4 MB, free: 8.055 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003252/0.1507, allocations: 389.6 kB / 310.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1507, allocations: 0 / 310.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002131/0.151, allocations: 46.38 kB / 310.8 MB, free: 7.848 MB / 282.7 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.0005521/0.1515, allocations: 1.216 MB / 312 MB, free: 6.832 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003681/0.1519, allocations: 0.6113 MB / 312.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1519, allocations: 1.031 kB / 312.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.152, allocations: 421.7 kB / 313.1 MB, free: 5.852 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004212/0.1525, allocations: 112.8 kB / 313.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.1548, allocations: 3.377 MB / 316.5 MB, free: 3.219 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.155, allocations: 190.8 kB / 316.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.284e-05/0.155, allocations: 11.28 kB / 316.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.1551, allocations: 31.09 kB / 316.8 MB, free: 3.078 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1551, allocations: 3.062 kB / 316.8 MB, free: 3.078 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.1801, allocations: 7.083 MB / 323.9 MB, free: 0.625 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.342/7.522, allocations: 6.359 kB / 323.9 MB, free: 0.6211 MB / 282.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0023933 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable nRXFERGATE.y in file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.csv. Warning: Get data of variable nRXFERGATE.y from file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.316075306385756]