Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",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.001099/0.001099, allocations: 92.98 kB / 16.65 MB, free: 6.586 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.001428/0.001428, allocations: 183 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004353, allocations: 4 kB / 301.5 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1269, allocations: 50.41 MB / 351.9 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001905/0.1288, allocations: 1.219 MB / 353.2 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.1309, allocations: 0.8624 MB / 354 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.888e-05/0.131, allocations: 0 / 354 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1311, allocations: 11.92 kB / 354 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.1313, allocations: 15.91 kB / 354 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.1316, allocations: 43.91 kB / 354.1 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.1318, allocations: 107.7 kB / 354.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.1319, allocations: 20.2 kB / 354.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007115/0.1326, allocations: 0.5576 MB / 354.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.1328, allocations: 67.69 kB / 354.8 MB, free: 440 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.272e-05/0.1328, allocations: 8 kB / 354.8 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.508e-05/0.1329, allocations: 0 / 354.8 MB, free: 432 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.133, allocations: 63.7 kB / 354.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.1331, allocations: 132.9 kB / 355 MB, free: 228 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.1335, allocations: 354.6 kB / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1335, allocations: 0 / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1336, allocations: 0 / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1336, allocations: 0 / 355.4 MB, free: 15.88 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.0008103/0.1344, allocations: 0.6531 MB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.1344, allocations: 12.03 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.964e-05/0.1345, allocations: 46.73 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/0.1346, allocations: 36.47 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003223/0.1349, allocations: 274.3 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.135, allocations: 4.375 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.135, allocations: 8.375 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.1353, allocations: 133.7 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1354, allocations: 3.984 kB / 356.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.1354, allocations: 7.984 kB / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.1354, allocations: 0 / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.1356, allocations: 67.91 kB / 356.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007327/0.1363, allocations: 460.6 kB / 357.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.1365, allocations: 94.53 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.1367, allocations: 84.89 kB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.1367, allocations: 11.94 kB / 357.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/0.1371, allocations: 202.6 kB / 357.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.763e-06/0.1371, allocations: 4 kB / 357.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008578/0.138, allocations: 472.1 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.982e-05/0.1381, allocations: 170.2 kB / 358.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007386/0.1388, allocations: 0.5091 MB / 358.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.869e-05/0.1389, allocations: 33.64 kB / 358.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.324e-05/0.139, allocations: 105.1 kB / 358.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/0.139, allocations: 39.52 kB / 358.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.1391, allocations: 25.7 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1393, allocations: 330.8 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.1394, allocations: 55.97 kB / 359.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1396, allocations: 69.69 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000382/0.14, allocations: 350.3 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.14, allocations: 4 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005912/0.1406, allocations: 380.3 kB / 360 MB, free: 10.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.1407, allocations: 126.8 kB / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1407, allocations: 0 / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1408, allocations: 0 / 360.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.321e-05/0.1408, allocations: 7.922 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1408, allocations: 4 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.141, allocations: 11.91 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.148e-05/0.1411, allocations: 55.94 kB / 360.2 MB, free: 10.67 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.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.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.0003928/0.1415, allocations: 370.8 kB / 360.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.733e-05/0.1415, allocations: 39.61 kB / 360.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.1416, allocations: 63.16 kB / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1416, allocations: 0 / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1417, allocations: 0 / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.1417, allocations: 4 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.1427, allocations: 0.8173 MB / 361.4 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1427, allocations: 4 kB / 361.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-06/0.1427, allocations: 0 / 361.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1427, allocations: 0 / 361.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.1428, allocations: 15.98 kB / 361.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1428, allocations: 0 / 361.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.1428, allocations: 4.125 kB / 361.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007097/0.1435, allocations: 0.5366 MB / 362 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003454/0.1439, allocations: 248.5 kB / 362.2 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.1439, allocations: 16 kB / 362.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.1441, allocations: 19.97 kB / 362.3 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.1442, allocations: 31.86 kB / 362.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-05/0.1443, allocations: 55.98 kB / 362.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004955/0.1448, allocations: 386.9 kB / 362.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.1448, allocations: 0 / 362.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.1451, allocations: 55.78 kB / 362.8 MB, free: 7.852 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,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.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.00103/0.1461, allocations: 1.089 MB / 363.9 MB, free: 6.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.1467, allocations: 441.5 kB / 364.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1467, allocations: 0 / 364.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.1471, allocations: 377.5 kB / 364.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/0.1477, allocations: 108.4 kB / 364.8 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003586/0.1513, allocations: 2.821 MB / 367.6 MB, free: 2.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000523/0.1518, allocations: 0.8024 MB / 368.4 MB, free: 1.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.578e-05/0.1519, allocations: 4.672 kB / 368.4 MB, free: 1.949 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.58e-05/0.152, allocations: 27.42 kB / 368.5 MB, free: 1.922 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.152, allocations: 0 / 368.5 MB, free: 1.922 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2191/0.3711, allocations: 5.293 MB / 373.7 MB, free: 23.97 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.3713, allocations: 200.6 kB / 373.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.027/2.398, allocations: 3.844 kB / 373.9 MB, free: 23.71 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches